docker ps shows the container up but RestartCount climbs.
App crashing, OOM kill, or a healthcheck failing on a policy.
docker inspect <c> --format "{{.State.ExitCode}} {{.State.OOMKilled}} {{.RestartCount}}"docker logs --since 5m <c>docker stats --no-stream # right-size -m limitHealthchecks with sane retries; memory limits from day one.
Full walkthrough: Docker Container Restarting: Crash Loop vs OOM vs Policy on the NinjaOps blog.
Spinning up a fresh box to reproduce or escape this error?
Servers with headroomNinjaOps publishes free engineering guides. Some outbound links are affiliate links: they cost you nothing and support the site.
Last reviewed 2026-10-02 · NinjaOps SEO grid · DevOps blog