Docker Engine 29 reference · Images

docker image ls Command (Docker CLI)

List local images with repository, tag, ID and size; filter dangling images and format the output.

Docker Engine 29

Create a free account to save this page, take notes and track your progress. Sign in

Syntax

docker image ls [OPTIONS] [REPOSITORY[:TAG]]

Parameters

ParameterDescription
--filter dangling=true Only untagged images.
--format TEMPLATE e.g. '{{.Repository}}:{{.Tag}} {{.Size}}'.
-q Only image IDs.

Examples

List by repository
docker image ls alpine --format '{{.Repository}}:{{.Tag}}' | grep -x 'alpine:3.24'

Output

alpine:3.24

Run this on your computer — see “Get Started” for setup.

Sizes on disk
docker image ls --format '{{.Repository}}:{{.Tag}} {{.Size}}' | grep -E '^(alpine:3.24|nginx:1.29-alpine) '

Output

alpine:3.24 13MB
nginx:1.29-alpine 93.5MB

Run this on your computer — see “Get Started” for setup.

Was this page helpful?