Automation · Container Automation
Container Deployment
Cheat sheet · https://pcornel.dk/topic.php?topic=5786
Answer
Container deployment starts or updates containers from images with defined ports, environment, volumes, restart policy and health checks, using Compose, Ansible's docker modules, CI pipelines or an orchestrator.
Remember
- Ports, env, volumes, restart policy, health checks.
- Use Compose or an orchestrator.
- Pin image versions.
First checks
docker compose pull && docker compose up -d— update deployment- Health check after deploy — verification
- Rollback to previous tag — recovery
Commands
docker compose ps --all- Read-only/validation observation for Compose service/container identity, command, lifecycle state and published ports.
Verify in this order
new image → deploy → health → done/rollback
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5786