Emergency CheatsheetCODE: 001-DOCKER-DEBUG⏱️ ~2 min read

Docker Debugging Cheatsheet: Exit Codes, Logs, Resources & Network Triage

Practical runbook for triaging stopped containers, high CPU/RAM usage, Docker bridge networking, and inspecting unhealthy containers.

Authored by: Vibe DevOps · Published: 10/19/2026

Full Poster Preview

Size: 1080×1350 (4:5)Enlarge or download for reference

Triage stopped containers, exit codes, unexpected restarts, container networking errors, and CPU/memory pressure with practical commands.

1. Exit Codes & Status Inspection

docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Image}}"
docker inspect <container> --format='{{.State.ExitCode}}: {{.State.Error}}'

Exit code 137 signals an Out-Of-Memory termination (OOMKilled); exit code 127 points to missing command binaries or broken entrypoints.

2. Log Triage & Live Stats

docker logs --tail 100 -f <container>
docker stats --no-stream

3. Debugging Running Containers

docker exec -it <container> sh

💡 Team Storage & Usage Tips

Store the vector PDF in your internal team repository (Notion, Confluence) or print it out in A4 format next to your workstation for rapid troubleshooting during midnight production outages.

🎬 RELATED ARCHITECTURE REEL

Deep Dive: Docker vs. Kubernetes: Container Engine vs. Cluster Orchestrator

Watch the accompanying 60-second visual animation reel to intuitively grasp the underlying architecture.