Skip to content

ops(OB-15): prune unpins dead cli one-shots before pruning (implements #85) - #88

Merged
cryptolir merged 1 commit into
mainfrom
feat/ob15-cli-unpin
Jun 27, 2026
Merged

cryptolir merged 1 commit into
mainfrom
feat/ob15-cli-unpin

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

Implements the Codex-reviewed plan in #85 to stop the recurring US disk P0.

Root cause: exited *-openclaw-cli-1 one-shot containers (restart policy no, 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:

bash -n clean; dry-run on both hosts keeps the correct tags, removes none (both already clean). Legacy openclaw:* is out of scope (Codex #85 P2 — already remediated, won't recur). Closes #85.

🤖 Generated with Claude Code

…#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]>
@cryptolir
cryptolir merged commit ea1ca6e into main Jun 27, 2026
2 of 4 checks passed
@cryptolir
cryptolir deleted the feat/ob15-cli-unpin branch June 27, 2026 10:35
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