Container Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5781
Answer
Container automation builds, pushes and deploys container images and manages networks and volumes with the Docker CLI and API, Docker Compose and CI pipelines, rather than starting containers by hand.
Remember
- Pin image tags or digests.
- Rebuild images to patch, don't patch running containers.
- Persist data in volumes, not in containers.
First checks
docker version— client/serverdocker compose version— Compose- Image build and deploy pipelines — automation
Verify in this order
Dockerfile → build → scan/sign → registry → deploy
Where it usually breaks
Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5781