Skip to content
Back to skills

Docker Patterns

ASecurity

Docker patterns for Dockerfiles, multi-stage builds, Compose, networking, and volumes. Load before any edit to a Dockerfile, Compose file, or .dockerignore, however small, and for container questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added October 5, 2026
ai-agentsdockerfrontend

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill docker-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-docker-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-docker-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker-patterns
description: Docker patterns for Dockerfiles, multi-stage builds, Compose, networking, and volumes. Load before any edit to a Dockerfile, Compose file, or .dockerignore, however small, and for container questions.
---

# Docker patterns

Default assumption: Docker Engine 29.10.1, Dockerfile frontend 1.29, and Compose 5.8, per the Docker Engine release notes and the BuildKit and Compose releases.

An Engine row applies when the daemon is at least its version, a Dockerfile row when the `# syntax=docker/dockerfile:<version>` line or the builder's bundled frontend is, and a Compose row when `docker compose version` is.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                                                                                                 | Read                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing a Dockerfile, or upgrading Docker Engine, Buildx, or Compose                                                                                                   | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing a Dockerfile, `.dockerignore`, or `docker run`                                                                                         | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Choosing a base image, splitting stages, ordering instructions, installing packages with `apt-get`, setting `ENTRYPOINT` or `CMD`, adding a user, or a `.dockerignore` | [reference/practices.md](reference/practices.md)         |
| Writing or changing a Compose file                                                                                                                                     | [reference/compose.md](reference/compose.md)             |
| Configuring build checks, hadolint, dclint, Trivy, or Docker Scout                                                                                                     | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md2.6 KB
  • reference/anti-patterns.md3.2 KB
  • reference/compose.md4 KB
  • reference/dockerfile.md4.4 KB
  • reference/multi-stage.md2.5 KB
  • reference/networking.md2.5 KB
  • reference/security.md3.8 KB
  • reference/volumes.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.