Pcornel
Automation · Container Automation

Container Automation Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=5790

Back to the Topic

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 logs
  • docker events --since 30m — daemon events
  • journalctl -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 logs
docker inspect
kubectl describe pod
kubectl 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

Confirmation

Confirm action

Continue?