Cheatsheet Pages / Docker Cheatsheet
How to inspect a Docker object — docker inspect
You need the full truth about a container: state, exit code, mounts, environment.
docker inspect -f '{{.State.Status}}' web # running / exited / dead
Good to know
The -f form pulls out a single field — here the container's status — which is what makes inspect script-friendly.
