DockerLinuxSRE
Docker container keeps restarting: exit codes, restart policies, docker logs
A container stuck in Restarting (1) is a crash loop. Read the exit code, the restart count and each attempt's logs, then fix the startup, not the policy.
Images, containers, networks and volumes: Docker problems explained from the runtime up.
4 postsRSS feed
A container stuck in Restarting (1) is a crash loop. Read the exit code, the restart count and each attempt's logs, then fix the startup, not the policy.
A full Docker host is usually container logs, which docker system df does not count. Find the space with df and du, prune safely, and set log rotation.
"502 Bad Gateway" over nginx/1.26.3 (Ubuntu) means nginx could not reach your app. Read error.log, tell refused from timed out, and fix the right link.
A zombie is a child that exited but was never reaped. Why kill -9 does nothing, how to find the parent, and why containers need a PID 1 that reaps.