ops-docker

ops-docker is an agent for Claude Code from christopherlouet/claude-base. It costs 25 tokens per session (565 once invoked), scanned A, original, MIT.

A setup for packaging an application and its supporting services into Docker containers, which run software in isolated, repeatable environments.

In plain words
What is it for?
It helps create Dockerfiles, Docker Compose configurations for apps with databases or Redis, environment documentation, health checks, and production-ready container settings.
Why use it?
It removes differences between development and production environments and helps keep application images smaller and safer.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit It helps create Dockerfiles, Docker Compose configurations for apps with databases or Redis, environment documentation, health checks, and production-ready container settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/christopherlouet/claude-base/ops-docker
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.

Clone the repo
git clone --depth 1 https://github.com/christopherlouet/claude-base

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/christopherlouet/claude-base/ops-docker/github.svg)](https://agentmods.dev/agents/christopherlouet/claude-base/ops-docker)
Your own site
<a href="https://agentmods.dev/agents/christopherlouet/claude-base/ops-docker"><img src="https://agentmods.dev/badge/agents/christopherlouet/claude-base/ops-docker/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 ops-docker

Your own site · 80×15
<a href="https://agentmods.dev/agents/christopherlouet/claude-base/ops-docker"><img src="https://agentmods.dev/badge/agents/christopherlouet/claude-base/ops-docker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 565 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00025 $0.00565
Opus 5.5 $0.00010 $0.00226
Sonnet 5.5 $0.00005 $0.00113
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

ops-docker 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 1mo 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.

.claude/agents/ops-docker.md · 62 lines

How it starts

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

Agent OPS-DOCKER

Docker containerization optimized for production.

Workflow

  1. Multi-stage Dockerfile: deps -> build -> runner (Alpine base, non-root user, HEALTHCHECK)
  2. Docker Compose: app + db + redis, healthchecks, depends_on, persistent volumes
  3. .dockerignore: node_modules, .git, .env*, tests, coverage
  4. Size optimization: Alpine (-70%), multi-stage (-50%), --no-cache-dir
  5. Security: official images, non-root user, no secrets in the image, image scan (docker scout cves or trivy image)

Supported stacks

  • Node.js: node:20-alpine, npm ci, dist
  • Python: python:3.12-slim, poetry/pip, gunicorn
  • Go: golang:1.22-alpine -> scratch, CGO_ENABLED=0

Expected output

  1. Optimized multi-stage Dockerfile
  2. docker-compose.yml dev/prod
  3. .dockerignore
  4. Documentation of environment variables

Pre-deployment checklist (mandatory)

Before any Docker deployment to production:

  1. Verify that the docker-compose used is the PRODUCTION one (not dev)
  2. Verify that all environment variables are defined for prod
  3. Verify secure cookies/CSP headers according to the environment (HTTPS=secure:true)
  4. Run the tests before the build (npm test / pytest)
  5. Verify the DB migrations (prisma migrate status or equivalent)
  6. Verify Docker logs: logging.options.max-size and max-file configured
  7. Confirm persistent volumes and healthchecks

Directives

  • NEVER put secrets in the Docker image
  • IMPORTANT: Always use a non-root user
  • YOU MUST include a HEALTHCHECK in the Dockerfile
  • IMPORTANT: Use Alpine images to reduce size
  • NEVER forget the .dockerignore
  • NEVER copy docker-compose.yml (dev) to production without verification
  • IMPORTANT: Always configure Docker log limits (max-size, max-file)
  • YOU MUST verify the pre-deployment checklist before any deploy to production

Think hard about image size and security.

See also

Docker Inc.'s own skills at docker/skills go deeper on Dockerfiles and Compose; image scanning and Hadolint stay this agent's job.

Read the full file on GitHub · 62 lines

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 · +4 lines bacf35929d93
  2. 3mo ago First seen · 58 lines · 25 tokens per session scan A d06383d3379e

Subscribe to this mod's changes

ops-docker is an agent published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed yesterday), licensed MIT. It adds 25 tokens to every session and 565 once invoked, about $0.0001 per session on Opus 5.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-31.

Related

ops-docker compared with agents from other repositories

ops-docker next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ops-dockerchristopherlouet/claude-baseAgent5yesterdayMITA25Claude Code
devsecops-engineertravisjneuman/.claudeAgent1152d agoMITA83Claude Code
devops-engineertravisjneuman/.claudeAgent1152d agoMITA48Claude Code
cicd-automation-kubernetes-architectwshobson/agentsAgent43kyesterdayMITA101Claude Code
debugging-specialisttravisjneuman/.claudeAgent1152d agoMITA32Claude Code
api-designertravisjneuman/.claudeAgent1152d agoMITA31Claude Code
mobile-architecttravisjneuman/.claudeAgent1152d agoMITA19Claude Code