FahamLah

Commands

docker inspect

docker inspect [-f <template>] <name>

Risk: Safe

What it does

Shows everything Docker knows about a container, image, volume or network.

When to use it

To find an exact detail, like an IP address or exit code.

Example

$ docker inspect -f '{{.State.Status}}' web

Just the state of web.