What problem does it solve?
Containerization principles — multi-stage builds, base image selection, layer caching, security. Use when containerizing a service, shrinking a bloated image, chasing CVEs in a base image, adding non-root + distroless to an existing Dockerfile, or reviewing any Dockerfile / .dockerignore changes. Trigger on any task mentioning "docker", "container", "image", "base image", or "deploy to kubernetes" — even when the user does not explicitly say "use the docker skill". Pair with language-specific docker skill for build patterns.
Core Features & Use Cases
- Multi-stage builds to create small, production-ready runtime images.
- Secure defaults: non-root user, pinned base images, and avoidance of secrets in layers.
- Caching strategies and .dockerignore hygiene to speed up builds and reduce context size.
Quick Start
Choose a base image and craft a two-stage Docker build to produce a small, secure, production-ready container.