Repository navigation
fix(docker): never prune other projects' containers or images - #19
Merged
Merged
Conversation
stop() pruned every stopped container on the Docker host and clean() pruned every dangling image. On a shared host that deletes other projects' containers. stop() now prunes only containers labelled ssgberk.run=<run_id>; clean() removes only ssgberk/test.* images. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
matbrgz
force-pushed
the
fix/scoped-docker-cleanup
branch
from
October 6, 2026 11:04
4864ee2 to
54be401
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DockerHelper.stop()rancontainers.prune()andclean()ranimages.prune()twice, all machine-wide. On a shared Docker host that removes other projects' stopped containers and dangling images (found while running many generator builds next to another project on the same Docker Desktop).stop()prunes only containers labelledssgberk.run=<run_id>(the label every toolset container already carries, BT 004).clean()removes onlyssgberk/test.*images and no longer prunes dangling images; removing a tagged image already deletes its unused layers.Test
clean()removes only the ssgberk test image and never callsimages.prune.🤖 Generated with Claude Code