docker-ops

docker-ops is a skill for Claude Code from 0xDarkMatter/claude-mods. It costs 114 tokens per session (3,581 once invoked), scanned A, original, MIT.

A guide to building and running applications in Docker containers. A container packages an application with the files and settings it needs to run consistently.

In plain words
What is it for?
Use it to write Dockerfiles, create multi-stage builds, configure Docker Compose services, add health checks, manage build secrets, and reduce unnecessary image contents.
Why use it?
It helps avoid common build, dependency, security, caching, and deployment mistakes in Dockerfiles and Compose setups.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-mods plugin — 116 skills, 5 commands, 4 agents, 4 hooks shipped together

Good fit Use it to write Dockerfiles, create multi-stage builds, configure Docker Compose services, add health checks, manage build secrets, and reduce unnecessary image contents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/0xdarkmatter/claude-mods/docker-ops
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.

Any agent
npx skills add 0xDarkMatter/claude-mods --skill docker-ops
Clone the repo
git clone --depth 1 https://github.com/0xDarkMatter/claude-mods

Made for: Claude Code.

Or install claude-mods, the plugin that ships this one along with the rest of its 116 skills, 5 commands, 4 agents, 4 hooks.

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-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/docker-ops/github.svg)](https://agentmods.dev/skills/0xdarkmatter/claude-mods/docker-ops)
Your own site
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/docker-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/docker-ops/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docker-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/0xdarkmatter/claude-mods/docker-ops"><img src="https://agentmods.dev/badge/skills/0xdarkmatter/claude-mods/docker-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,581 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00114 $0.03581
Opus 5.5 $0.00046 $0.01432
Sonnet 5.5 $0.00023 $0.00716
Haiku 4.5 $0.00011 $0.00358

Measured 1mo ago against content hash 3ba18d5d755f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docker-ops scanned grade A with 1 finding 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 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/check-docker-facts.py, scripts/check-image-tags.py, scripts/docker-audit.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

run: slim and distroless images ship no curl.
skills/docker-ops/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Docker Operations

Docker on your machine and in your repo: the files you write (Dockerfile, .dockerignore, compose.yaml) and the engine that runs them. Versions verified 2026-10-07 (Compose v5, Docker Desktop 4.94, WSL 3.0, Podman 6); scripts/check-docker-facts.py --live re-checks them weekly.

Why: the costly Docker mistakes are silent. A secret is copied into a layer, a datastore listens on every interface, compose config pastes credentials into a log, a prune deletes a volume someone needed. The rules below stop those first.

Hard rules

  1. Say what is lost before anything destructive, and confirm a sweep. Removing one stopped container the user named is fine on an explicit ask. docker kill, any prune, compose down -v, volume rm, and anything unscoped (docker rm -f $(docker ps -aq)) needs a confirmation that names what goes. A sweep counts as a sweep even when everything in it is stopped: scope beats state. Tiers: destructive-commands.md.
  2. Never run docker compose config bare. It prints interpolated values and inlines env_file contents. Use docker compose config --quiet to validate, and add --no-interpolate when you need to read the file.
  3. No secrets in layers. No ARG/ENV credentials, no COPY .env / .npmrc / keys. Use RUN --mount=type=secret,id=x,required=true (fails loudly when the secret is missing) and --mount=type=ssh. A later RUN rm does not remove a file from the earlier layer.
  4. Datastores and debug ports bind to loopback. Write 127.0.0.1:5432:5432, never 5432:5432. On Docker Desktop, an unbound port is reachable from your LAN.
  5. Pin scanners and actions by commit SHA. In March 2026, 76 of trivy-action's 77 tags were force-pushed to an infostealer (advisory GHSA-69fq-xp46-6x23). Use aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0. Vetting dependencies is supply-chain-defense's job.
  6. Current bases only. Node.js 22 is the oldest supported line (20 ended 2026-04-30), Python 3.11 (3.10 ended 2026-10-01). Distroless images are -debian13. Pin a tag, and in production a digest. assets/docker-facts.json holds the floors the auditor checks.
  7. Verify a non-root image with docker inspect --format '{{.Config.User}}' (it must be set and not 0 or root). docker run img whoami lies when the image has an ENTRYPOINT.
  8. Never start, stop or reconfigure the engine on the user's behalf. Report that it is down and give the start command. Propose a settings change; don't apply it. A setting their admin locked is the admin's call (docker-doctor.py reports locks).
  9. compose.yaml, no version: line. Compose ignores version: and prints a warning. Since Compose v5 (2025-12; v3 and v4 were skipped), builds go through Bake.
  10. Run this skill's scripts by path from the project root. Use python "<skill-dir>/scripts/x.py"; never cd into the skill or call scripts/x.py relative to the project.

Read the full file on GitHub · 212 lines

Files

What ships with it

48 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -84 lines · +44 tokens per session scan B → A 3ba18d5d755f
  2. 1mo ago Changed · +8 lines 9efb756746c6
  3. 3mo ago First seen · 288 lines · 70 tokens per session scan B 6060177ee990

Subscribe to this mod's changes

docker-ops is a skill published in the GitHub repository 0xDarkMatter/claude-mods (86 stars, last pushed 6d ago), licensed MIT. It adds 114 tokens to every session and 3,581 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

docker-ops compared with skills from other repositories

docker-ops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docker-ops0xDarkMatter/claude-modsSkill866d agoMITA114Claude Code
agent-cloud-architecttravisjneuman/.claudeSkill115yesterdayMITA75Claude Code
agent-devops-engineertravisjneuman/.claudeSkill115yesterdayMITA12Claude Code
k8s-sidecar-testingfakoli/fakoli-pluginsSkill4yesterdayMITA43Claude Code, Codex
proxmox-cluster-opsdryvist/claude-code-pluginsSkill313d agoApache-2.0A47Claude Code
devops-commandervignesh2027/Claude-Agentic-Skills2.0-versionSkill43mo agoMITA79Claude Code, Codex
infra-deployterrylica/cc-skillsSkill5todayMITC27Claude Code