- Home
- Skills
- DevOps & Cloud
- Docker Disk Reclaim and Crash Forensics
More screenshots
Works with the AI Agents you already use
Docker Disk Reclaim and Crash Forensics
Free disk and debug OOM/crash loops without ever deleting a volume.
$12
Docker Disk Reclaim and Crash Forensics
Example session with this skill installed
Request: "Containers on our Docker host keep dying and the disk is filling up. Clean it up, but don't lose anything."
- Read your context and instructions
- Compiled the docker disk reclaim
The agent collects evidence before any restart or cleanup:
$ scripts/docker_reclaim.sh forensics --since 1h
== Containers needing attention
worker-crash status=exited exit=1 oom=false (application error: read the logs)
api-oom status=exited exit=137 oom=true (137/OOMKilled: memory limit or host OOM; check 'docker stats' and dmesg)
== Kernel OOM messages
Memory cgroup out of memory: Killed process 1249 (sh) total-vm:13932kB, anon-rss:7604kB
Evidence saved in ./docker-forensics-20261121T164243
It then asks for a reclaim plan. A window under 24 hours is refused, because recent images are your rollback:
$ scripts/docker_reclaim.sh plan --until 0h
BLOCKED: --until 0h is under 24h; recent images/containers are your rollback. Set ALLOW_RECENT=1 to override.
With an explicit override the plan lists exact IDs and protects volumes:
== Exited containers older than 0h
candidate old-db, batch-done, worker-crash, api-oom
== Volumes: NEVER touched by this tool
1 volume(s) protected
Plan written to reclaim-plan.txt (4 container(s), 0 image(s))
Result: api-oom needs a higher memory limit, not a restart loop. execute --plan removes only the listed IDs after re-checking each one, and the pgdata volume survives.
Connects securely to your tools. The creator never sees your data.
About this skill
Disk-full and crash-loop triage without data loss: capture evidence before restarts, build an exact reclaim plan, remove only what it lists, never volumes. The safe answer to docker system prune -af --volumes.
Why this instead of a free prompt
Free skills ask the model to "be careful". These ship executable gates: a migration that would lock a busy table fails the linter; an alert that references a metric your Prometheus does not have fails verification; a Compose rollout that turns unhealthy rolls itself back. Every script was run against real PostgreSQL 16, Docker 29, ansible-core and Prometheus with node_exporter and postgres_exporter before release.
How it keeps you safe
- Read-only pre-flight first: diagnostics that change nothing.
- Dry-run by default. Anything that changes state needs an explicit apply step and a typed confirmation.
- Rollback built in, and guardrails that refuse unsafe input.
- No secrets printed in output.
Requirements
Docker Engine 23+, bash, GNU coreutils. Runs on RHEL/AlmaLinux 8+ and Debian 11+/Ubuntu 20.04+.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.
Not for: Kubernetes nodes, Compose security reviews or Dockerfile optimisation. Requires Docker Engine 23+, bash and GNU coreutils on Linux (RHEL/AlmaLinux 8+, Debian 11+/Ubuntu 20.04+).
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Software
- Docker Engine 23+BashGNU coreutils