docker
Use when containerizing applications with Docker — Dockerfiles, multi-stage builds, docker-compose, or container deployment. Also use when debugging container issues, optimizing image sizes, or setting up local development with Docker.
| Model | Source |
|---|---|
| sonnet | pack: deploy |
Full Reference
┏━ 🚀 docker ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when containerizing applications with Dock… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
Docker
Section titled “Docker”Docker Engine v29.2.1 (February 2026). Docker Compose v2 is the standard — docker compose (space, no hyphen). The version: field in compose.yaml is obsolete — remove it. BuildKit is enabled by default since Engine v23.
Quick Reference
Section titled “Quick Reference”| Item | Value |
|---|---|
| Engine | v29.2.1 |
| Compose | v2 (docker compose, not docker-compose) |
| Docs | https://docs.docker.com |
| Init | docker init — auto-generates Dockerfile + compose.yaml |
| Scout | docker scout cves <image> — vulnerability scanning |
| Desktop license | Free: less than 250 employees AND less than $10M revenue |
Reference Index
Section titled “Reference Index”| I want to… | File |
|---|---|
| Write a Dockerfile or build multi-stage images for Node.js, Next.js, Go, or Python | reference/dockerfile.md |
| Configure Docker Compose, set up depends_on, use Compose Watch, or build production stacks | reference/compose.md |
| Optimize layer caching, write .dockerignore, use build/runtime secrets, or scan with Scout | reference/optimization-secrets.md |
Usage: Read the reference file matching your current task from the index above. Each file is self-contained with code examples and inline gotchas.