Skip to content

fix(watch): stop pruning every dangling image of the project - #14012

Open
glours wants to merge 1 commit into
docker:mainfrom
glours:fix-watch-prune-dangling
Open

fix(watch): stop pruning every dangling image of the project#14012
glours wants to merge 1 commit into
docker:mainfrom
glours:fix-watch-prune-dangling

Conversation

@glours

@glours glours commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What I did
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.

Related issue
N/A

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

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 <glours@users.noreply.github.com>
@glours
glours requested review from a team as code owners August 6, 2026 16:41
@glours
glours requested a review from ndeloof August 6, 2026 16:41
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant