Shows the full low-level JSON for a container, image, volume or network: IP address, mounts, env vars, exit code, health and more.
--format (or -f) takes a Go template, so you can pull out one value instead of scrolling JSON.
Pipe to jq for readable output: docker inspect <c> | jq ".[0].State". OOMKilled: true with exit code 137 means the container ran out of memory.
inspect shows environment variables in plain text, including any secrets passed with -e.