images

docker images

Lists images stored in the local image store with their repository, tag, ID, and size. Alias for docker image ls.

docker images [OPTIONS] [REPOSITORY[:TAG]]

Common flags

Flag Purpose
-a, --all Show all images including intermediate layers
-q, --quiet Only show image IDs
-f, --filter Filter output (e.g., dangling=true, label=key)
--digests Display image content digests
--format Format output with Go template
--no-trunc Show full image IDs without truncation

Examples

docker images

List all top-level images

docker images --filter dangling=true -q | xargs docker rmi

Prune untagged image layers

docker images nginx --digests

Show all nginx tags with their SHA digests

docker images --format '{{.Repository}}:{{.Tag}} {{.Size}}'

Compact custom formatting

Gotcha

With BuildKit and containerd image store, results can differ from the classic view. Dangling : images accumulate quickly during iterative builds — prune regularly.

Related commands

← All Docker commands · Docker vs Kubernetes · Docker vs VMs