Repository navigation
ops(OB-15): prune unpins dead cli one-shots before pruning (implements #85) - #88
Merged
Merged
Conversation
…#85) prune-gateway-images.sh: remove exited *-openclaw-cli-1 containers (restart policy no, stateless) before computing INUSE_TAGS, so stale gateway tags they pin become reclaimable. INUSE_TAGS now excludes those doomed containers so --dry-run matches a live run (Codex #85 P1). diagnostic-cron.sh: KEEP_RECENT 2 -> 3 (rollback depth for fleet + life tracks). bash -n clean; dry-run on both hosts keeps the correct tags, removes none (hosts already clean). Closes the OB-15 recurrence (US disk filled because dead cli one-shots pinned old ~8.5 G tags through the prune's in-use guard). Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.
Implements the Codex-reviewed plan in #85 to stop the recurring US disk P0.
Root cause: exited
*-openclaw-cli-1one-shot containers (restart policyno, stateless) keep referencing the image they were built on, so the prune's in-use guard (docker ps -a) treats long-dead ~8.5 GB tags as in-use forever → disk climbs each roll.Change:
prune-gateway-images.sh:docker rmthe exited cli one-shots before computingINUSE_TAGS;INUSE_TAGSexcludes those doomed containers so--dry-run== live decision (Codex plan: gateway-image prune — unpin stale tags from dead CLI containers #85 P1).diagnostic-cron.sh:KEEP_RECENT2 → 3 (rollback depth for fleet + life tracks).bash -nclean; dry-run on both hosts keeps the correct tags, removes none (both already clean). Legacyopenclaw:*is out of scope (Codex #85 P2 — already remediated, won't recur). Closes #85.🤖 Generated with Claude Code