Container Automation Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5790
Answer
Troubleshoot container automation by checking docker logs and inspect output, image tags and pull errors, port conflicts, volume permissions, network names, Compose file syntax and the daemon's own logs.
Remember
- docker logs and inspect show most causes.
- Port conflicts and volume permissions are common.
- Compose config validates files.
First checks
docker logs <c>— container logsdocker events --since 30m— daemon eventsjournalctl -u docker --since -1h— daemon logs
Commands
docker ps --all --format "{{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}"- Read-only/validation observation for container identity, image, lifecycle status and name from the selected Docker engi…
docker logsdocker inspectkubectl describe podkubectl diff
Verify in this order
deploy → pull → create → start → health → error
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=5790