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.

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
- Same Express app. 1.88 GB, then 244 MB.
One small app built seven ways. The base image, a missing .dockerignore and dev tools in production, each measured. 158 MB of the final image is Node itself.
- Five kinds of 502. The error log names each one.
I broke nginx five ways until I had five different 502s. Each leaves its own line in error.log. The stale IP one looked like a refused port while the app was fine.
Other guides
$39 · 4 guidesAll four, one download
Free · 8 pages + labPlay Store Release: Signed Right
$15 · 14 pages + labApple Release: Signed, Notarized, Shipped
$12 · 25 pages + kind labKubernetes Break-Fix Field Guide
$12 · 25 pages + labNginx Break-Fix Field Guide
$24 · 14 pages + labIngress NGINX to Gateway API runbook
Free · samplerKubernetes Break-Fix: free sampler