← All notes
TECHNICAL GUIDE · 2026-11-14

Diagnosing Docker and Podman Container Failures

A practical workflow for checking container states, logs, mounts, networks and disk usage before taking action.

DockerPodmanLinuxTroubleshooting

Start with a clear inventory

A stopped container is not necessarily a broken service. Begin by checking which container should be running, what image it uses, and whether the environment is managed with Docker or Podman.

docker ps --all
podman ps --all

docker system df
podman system df

Docker and Podman do not necessarily share image stores, container state or volumes. Check the actual runtime and Linux user before investigating.

Inspect a failing workload

docker logs --tail 100 --timestamps app
docker inspect app --format '{{.State.Status}} {{.State.ExitCode}}'
docker inspect app --format '{{json .NetworkSettings.Networks}}'

podman logs --tail 100 --timestamps app
podman inspect app --format '{{.State.Status}} {{.State.ExitCode}}'

Look for failure time, exit code, restart history, bind mounts, expected environment variables and network membership. Avoid printing secrets when reviewing inspect output.

Investigate connectivity

Check the application from another container on the same user-defined network, then through the reverse proxy. This separates runtime issues from routing issues.

docker network ls
docker network inspect app_net
curl -I https://example.com/health

Handle disk pressure carefully

Do not immediately run system-wide prune commands on a host with persistent data. Record active containers, named volumes, image references and build-cache usage first. Remove only objects that are confirmed safe to discard.

Verify recovery

Re-check application status, HTTP response, logs and the user journey. A container marked Up is not proof that the service is ready.