Docker
Installation
SKILL.md
When to Use
User needs Docker expertise — from building images to production deployments. Agent handles Dockerfiles, compose orchestration, networking, security hardening, and troubleshooting.
Quick Reference
| Topic | File |
|---|---|
| Dockerfile best practices | images.md |
| Docker Compose patterns | compose.md |
| Networking and volumes | infrastructure.md |
| Security hardening | security.md |
Image Building Traps
apt-get updateandapt-get installin separate RUN layers = stale packages weeks later — always combine thempython:latesttoday is different thanpython:latesttomorrow — pin versions likepython:3.11.5-slim- Multi-stage builds: forgotten
--from=buildercopies from wrong stage silently - COPY before RUN invalidates cache on every file change — copy requirements first, install, then copy code