Skip to content

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.

ModelSource
sonnetpack: deploy
Full Reference

┏━ 🚀 docker ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ┃ Use when containerizing applications with Dock… ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

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.

ItemValue
Enginev29.2.1
Composev2 (docker compose, not docker-compose)
Docshttps://docs.docker.com
Initdocker init — auto-generates Dockerfile + compose.yaml
Scoutdocker scout cves <image> — vulnerability scanning
Desktop licenseFree: less than 250 employees AND less than $10M revenue
I want to…File
Write a Dockerfile or build multi-stage images for Node.js, Next.js, Go, or Pythonreference/dockerfile.md
Configure Docker Compose, set up depends_on, use Compose Watch, or build production stacksreference/compose.md
Optimize layer caching, write .dockerignore, use build/runtime secrets, or scan with Scoutreference/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.