Skip to content

Shop25 pages + lab

Docker Break-Fix Field Guide

Your container exited. Or it says Up and answers nothing. This tells you what to run next, what the output means, and what to change.

Every error, log line and number came from a real Docker engine, broken on purpose one failure at a time.

$12Buy on GumroadCards, PayPal and UPI · lower price in India
Docker Break-Fix Field Guide cover

What's inside

  • 9 flowcharts: exits right away (1, 0, 127, 137), docker stop hangs, port mapped but nothing answers, app can't reach the database, depends_on didn't wait, permission denied on a volume, the 1.88 GB image, builds that reinstall everything, Docker filling the disk
  • After each chart, the real output, a fix checklist, and what to change
  • Copy-paste Dockerfile, .dockerignore and compose.yml that avoid all nine, tested in the lab
  • Every command on one page
  • The lab: one script per chart, plus the raw output

Found in the lab

  • Plain docker stop waited 3.2 s on Docker Desktop, not 10 s
  • Node as PID 1 ignored SIGTERM. --init took a stop from 3.19 s to 0.11 s
  • Postgres printed "ready to accept connections" twice. The first one isn't ready
  • Same Express app: 1.88 GB image, then 244 MB
  • Logs with no limit hit 1.7 GB in 2 minutes

Tested on

Docker Engine 29.9.2, Compose v5.6.1, buildx v0.38.1, node:22-alpine, postgres:16-alpine

For

Devs who ship their own containers, juniors on their first DevOps job, anyone who typed docker logs and got nothing.

Read first, free

Other guides