Docker CLI

docker image inspect

Read local image metadata. --format selects particular fields. Image configuration is not the running container state. Cmd alone is not the full runtime command; Entrypoint and runtime arguments may contribute.

Formal Syntax & Structure

docker syntaxdocker
docker image inspect [OPTIONS] IMAGE [IMAGE...]

Working Example

Example Snippetdocker
docker image inspect --format '{{.Os}}/{{.Architecture}}' busybox:1.37
Docker Reference