mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
pruneDanglingImagesOnRebuild probed the name-keyed built-images map with an image ID, so the spare-check never matched and every dangling image carrying the project label was removed on each rebuild with --prune — not just the superseded ones. Match dangling IDs against the map's values (the freshly built image IDs) instead. Signed-off-by: Guillaume Lours <[email protected]>