LinuxCommandLibrary

docker-images

docker-images

TLDR

List all Docker images

$ docker images
copy


List all Docker images including intermediates
$ docker images --all
copy


List the output in quiet mode (only numeric IDs)
$ docker images --quiet
copy


List all Docker images not used by any container
$ docker images --filter dangling=true
copy


List images that contain a substring in their name
$ docker images "[*name*]"
copy


Sort images by size
$ docker images --format "[.ID]\t[.Size]\t[.Repository]:[.Tag]" | sort -k 2 -h
copy

SYNOPSIS

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

DESCRIPTION

Alias for docker image ls.

OPTIONS

-a, --all[=false] Show all images (default hides intermediate images)

--digests[=false] Show digests

-f, --filter= Filter output based on conditions provided

--format="" Format output using a custom template:

Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates

-h, --help[=false] help for images

--no-trunc[=false] Don't truncate output

-q, --quiet[=false] Only show image IDs

SEE ALSO

docker(1)

Copied to clipboard