docker-management

docker-management is a skill for Claude Code, Codex from metaspartan/cybara. It costs 25 tokens per session (445 once invoked), scanned A, original, MIT.

A guide for operating and troubleshooting Docker, a system for running software in isolated containers. It covers containers, images, storage volumes, networks, Compose applications, and Dockerfiles.

In plain words
What is it for?
Use it to check Docker installations, manage containers and Compose stacks, inspect resources, debug builds and services, review Dockerfiles, and clean up disk usage.
Why use it?
It gives a structured way to find failing services, inspect their configuration, read relevant logs, and review image and container safety.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/metaspartan/cybara/docker-management
Any agent
npx skills add metaspartan/cybara --skill docker-management
Clone the repo
git clone --depth 1 https://github.com/metaspartan/cybara

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docker-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/metaspartan/cybara/docker-management.svg)](https://agentmods.dev/skills/metaspartan/cybara/docker-management)
Your own site
<a href="https://agentmods.dev/skills/metaspartan/cybara/docker-management"><img src="https://agentmods.dev/badge/skills/metaspartan/cybara/docker-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 445 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00445
Opus 5 $0.00013 $0.00222
Sonnet 5 $0.00005 $0.00089
Haiku 4.5 $0.00003 $0.00044

Measured 6d ago against content hash 934ef6a9ae25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

docker-management scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/docker-management/SKILL.md · 67 lines

What it actually says

Docker Management

Use this for container lifecycle operations, Compose stacks, image builds, logs, disk cleanup, and Dockerfile review.

First Checks

docker --version
docker compose version
docker info

If Docker is not running, stop and report that instead of guessing.

Common Tasks

Task Command
Running containers docker ps
All containers docker ps -a
Logs docker logs --tail 100 <name>
Follow logs docker logs --tail 100 -f <name>
Shell docker exec -it <name> /bin/sh
Inspect docker inspect <name>
Stats docker stats --no-stream
Compose status docker compose ps
Compose logs docker compose logs --tail 100
Disk usage docker system df

Debugging Flow

  1. Identify the failing container or service.
  2. Check status and exit code with docker ps -a or docker compose ps.
  3. Read logs from the failing service only.
  4. Inspect env, mounts, ports, healthcheck, restart policy, and network.
  5. Reproduce with the smallest command or Compose service.
  6. Fix the image/config and rebuild.

Dockerfile Review

Check for:

  • Pinned base image and runtime versions.
  • Multi-stage builds for compiled/bundled apps.
  • No secrets in ARG, ENV, layers, or copied files.
  • Non-root runtime user.
  • Small runtime image and explicit healthcheck where useful.
  • Dependency install before source copy when caching matters.

Cleanup Safety

Never run destructive cleanup without checking impact:

docker system df
docker image prune
docker container prune

Ask before docker system prune -a --volumes; it can remove data and rebuild caches.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 67 lines · 25 tokens per session scan A 934ef6a9ae25

Subscribe to this mod's changes

docker-management is a skill published in the GitHub repository metaspartan/cybara (26 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 445 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.