Commit 7532327
committed
fix: create /data/compose compat symlink for legacy stacks after migration
Legacy compose stacks reference /data/compose/* for bind mounts, but
the migration only copies data to ${data_root}/compose without creating
a path alias. When containers restart, Docker cannot resolve the
original /data/compose/... paths and fails.
After the transform successfully copies data:
1. Rename /data/compose → /data/compose.legacy-bak (preserve for rollback)
2. Create symlink /data/compose → ${data_root}/compose
This matches the /data → ${data_root} compat symlink inside the product
container.1 parent 298dcab commit 7532327
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
487 | 497 | | |
488 | 498 | | |
489 | 499 | | |
| |||
0 commit comments