Docker and Docker Compose best practices for local development, container security, networking, volume strategies, and multi-service orchestration. Always activate when the user is writing a Dockerfile, setting up Docker Compose, troubleshooting container issues, designing multi-container architectures, reviewing images for security or size, managing secrets in containers, or migrating to a containerized workflow — even if they don't explicitly ask for "best practices".
Docker and Docker Compose best practices for containerized development and production.
When this skill activates:
.dockerignore whenever a Dockerfile is written — it's easy to forget and causes bloated images.# docker-compose.yml