Commit 3e679db
committed
fix(launcher): reuse MPC container across restarts to preserve logs
The launcher removed and recreated the MPC container on every boot
(docker rm -f + docker compose up -d), dropping Docker's container-ID-keyed
logs each restart. The rm -f worked around a name conflict from running as a
different compose project every boot (random temp compose path, no -p).
Pass an explicit `-p mpc` compose project so Compose reuses the existing
container when the config is unchanged (preserving its logs) and recreates it
only when the rendered config changes (e.g. image digest). No name-conflict
cleanup is needed: a launcher change re-keys the CVM disk (the key is derived
from the launcher's compose measurement), so a new launcher always boots on a
fresh disk with no prior mpc-node container.
Also note in the TDX guide that logs persist across a restart but are cleared
on an upgrade.1 parent 5b2e62b commit 3e679db
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
67 | 65 | | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
966 | 966 | | |
967 | 967 | | |
968 | 968 | | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
969 | 973 | | |
970 | 974 | | |
971 | 975 | | |
| |||
0 commit comments