Docker production rules

Docker production rules is a skill for Claude Code, Codex from AmariahAK/atlarix-skills. It costs 3 tokens per session (368 once invoked), scanned B, original, Apache-2.0.

A set of rules for building Docker containers for production use. Docker containers package an application and its dependencies so it can run consistently across environments.

In plain words
What is it for?
Use it when writing Dockerfiles, configuring container networking and storage, or preparing Docker builds for deployment. It covers version pinning, multi-stage builds, non-root users, health checks, logging, and image scanning.
Why use it?
It reduces common deployment and security problems, such as using changing base images, running as root, including secrets, or creating unnecessarily large images.

Skill for Claude CodeCodex

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

Good fit Use it when writing Dockerfiles, configuring container networking and storage, or preparing Docker builds for deployment. It covers version pinning, multi-stage builds, non-root users, health checks, logging, and image scanning.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/amariahak/atlarix-skills/acr-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.

Any agent
npx skills add AmariahAK/atlarix-skills --skill acr-docker
Clone the repo
git clone --depth 1 https://github.com/AmariahAK/atlarix-skills

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 production rules

README.md
[![agentmods](https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-docker/github.svg)](https://agentmods.dev/skills/amariahak/atlarix-skills/acr-docker)
Your own site
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/acr-docker"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-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 Docker production rules

Your own site · 80×15
<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/acr-docker"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/acr-docker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 368 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 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.00003 $0.00368
Opus 5 $0.00002 $0.00184
Sonnet 5 $0.00001 $0.00074
Haiku 4.5 $0.00000 $0.00037

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

Security

Grade B, and why

Docker production rules scanned grade B 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 12d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Never run as root
skills/acr-docker/SKILL.md · 56 lines

What it actually says

Docker production rules

When to use this skill

Docker production rules. Pinned versions, multi-stage builds, non-root user, minimal attack surface.

Source

Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/docker.mdc.

Docker Rules

Expert Docker practitioner. Minimal, secure, reproducible images.

Dockerfile

  • Pin versions: FROM node:20.11-alpine3.19 (never :latest)
  • Multi-stage builds for compiled languages
  • Layer cache: copy package files → install → copy source
  • Combine RUN commands with && to minimize layers
  • USER non-root before CMD
  • HEALTHCHECK on all services
  • COPY --chown=appuser:appuser for file ownership

Security

  • Never run as root
  • No secrets in Dockerfile or image layers
  • No .env files copied into image
  • Scan with docker scout or trivy in CI

.dockerignore

  • Always present: node_modules, .git, .log, .env, test files

Volumes

  • Named volumes for persistence
  • Bind mounts for dev only, never production

Networking

  • Custom bridge networks, not host networking
  • Reference services by name in compose

Logging

  • Always stdout/stderr — never log to files inside container

Forbidden

  • No :latest tags in production
  • No ADD when COPY works
  • No root user in production
  • No secrets in build args or image layers
Files

What ships with it

1 file 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. 12d ago First seen · 56 lines · 3 tokens per session scan B c172aba0af09

Subscribe to this mod's changes

Docker production rules is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed 5d ago), licensed Apache-2.0. It adds 3 tokens to every session and 368 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cli

Bento packages AI agent workspace state into portable, layered OCI artifacts — everything git doesn't track: agent memory, dependencies, build caches, conversation history, session state. Checkpoints are standard OCI images pushable to any container registry.

kajogo777/bento · 0 tokens

deployment-patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

affaan-m/ECC · 41 tokens

deploy-docker-compose

Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…

omnigent-ai/omnigent · 84 tokens

implementing-container-image-minimal-base-with-distroless

Reduce container attack surface by building application images on Google distroless base images that contain only the application runtime with no shell, package manager, or unnecessary OS utilities.

xalgorix/xalgorix · 45 tokens

k8s-clean-cluster

Force-clean all Kurtosis resources from a Kubernetes cluster when kurtosis clean hangs or fails. Removes all kurtosis namespaces, pods, daemonsets, cluster roles, and cluster role bindings. Use when kurtosis clean -a hangs or leaves behind orphaned resources.

kurtosis-tech/kurtosis · 59 tokens

michel-run-local-dev-stack

The canonical recipe for starting, checking, and stopping the Packmind local dev stack with Docker Compose — the single source of truth other skills and the Michel agent defer to. Covers bringing the full stack (PostgreSQL, Redis, NestJS API, React/Vite frontend on :4200, MCP server, nginx) up in the background, the…

PackmindHub/packmind · 275 tokens