Repository navigation
Commit 2cbe3bb
committed
fix(updater): hand the host docker socket in under a name of its own
An update runs the updater image the target configuration names, so a
downgrade runs the updater of the older release - and that one starts a
dockerd of its own, unconditionally, on /var/run/docker.sock. The socket
do-update.sh bind-mounts there makes that impossible: the path cannot be
unlinked, so the daemon never binds it.
The host's socket now goes in as /run/cuos-docker.sock, which an updater
that does not know about it simply does not see - the situation it was
written for. docker_environment.sh prefers it, still accepts the default
path, because image-factory and every system older than this updater
mount the socket there, and otherwise starts a daemon of its own. A
socket that is present but does not answer has to unset DOCKER_HOST, or
the client keeps addressing it while the retry loop brings up a dockerd
on the default path.
tool.sh's image factory keeps the default path deliberately: it builds on
the host's daemon because that is faster and platform-independent, and it
always runs the factory image it pins itself.
Signed-off-by: Simon Walz <contact@simonwalz.de>1 parent 091eb13 commit 2cbe3bb
3 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | 63 | | |
59 | | - | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
95 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
| |||
0 commit comments