Intermediate Reading #docker #runtime #devops

🐳 Reading Docker Runtime Errors

4 exercises — read real docker run, docker ps, and docker inspect output. Diagnose name conflicts, port conflicts, architecture mismatches, and OOMKilled containers.

Runtime error checklist
  • "Conflict. The container name ... already in use" → remove or rename the old container
  • "port is already allocated" → something on the host already holds that port
  • "exec format error" → CPU architecture mismatch (arm64 vs amd64)
  • Exit code 137 → killed by SIGKILL, almost always OOMKilled
Talking about it out loud (Slack / stand-up)
  • "It's not crashing — there's already a stopped container with that name from before."
  • "Port's already in use on my machine, probably left over from another container."
  • "This looks like an arch mismatch — the image was built for arm64 and we're on x86."
  • "docker inspect confirms OOMKilled — we need to either raise the memory limit or find the leak."
0 / 4 completed
1 / 4
🐳 docker run output — name conflict
{ex.passage}
What is the problem, and what does Docker want you to do about it?