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.

Docker Cheatsheet one-page card — commands that actually work
The full one-page card — Docker Cheatsheet. Get the complete cheatsheet on GitHub