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.5 $0.00001 $0.00147
Sonnet 5.5 $0.00001 $0.00074
Haiku 4.5 $0.00000 $0.00037

Measured 3mo ago against content hash c172aba0af09, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 3 tokens to every session and 368 once invoked, about $0.0000 per session on Opus 5.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

Docker production rules compared with skills from other repositories

Docker production rules next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Docker production rulesAmariahAK/atlarix-skillsSkill02mo agoApache-2.0B3Claude Code, Codex
redamon-testingsamugit83/redamonSkill3.6kyesterdayMITA114Claude Code, Codex
ecspressokayac/ecspressoSkill1.1k8d agoMITA17Claude Code
docker-local-buildkurtosis-tech/kurtosisSkill56011d agoApache-2.0A56Claude Code, Codex
docker-debugkurtosis-tech/kurtosisSkill56011d agoApache-2.0A45Claude Code, Codex
release-ota-promotePrismer-AI/PrismerCloudSkill1.4k1mo agoMITA52Claude Code
detecting-container-escape-attemptsxalgorix/xalgorixSkill1.5kyesterdayApache-2.0C40Claude Code, Codex