Repository navigation
Deploys remove the old images they leave behind - #36
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NaZdmEt5VCJtgF27kW7pbJ
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.
Deploys no longer leave old images behind. That gap filled deals-lab's 30 GB disk twice in two weeks (RCA, 2026-11-16).
Root cause: every deploy that moves a tag left the image it replaced, and nothing removed it. Argus's companion had the same gap as the old stack-sync. The only backstop was a disk alert at 95%, which on a 30 GB host left less room than one more pull of a 6 GB image.
What changes (design decision 24)
docker image prune -awas not used for exactly those reasons.Docs: design.md (decision 24), guide.md (Deploys), security.md (what the companion may remove).
Tests: Go (which images go and which stay; an unhealthy deploy removes nothing; the deploy result; cleanup on start), UI (disk tones), Python (the 90% alert).
🤖 Generated with Claude Code
https://claude.ai/code/session_01NaZdmEt5VCJtgF27kW7pbJ