Skip to main content

Manage Docker images.

# To list all Docker images:
docker images

# To list all Docker images including intermediates:
docker images --all

# To list the output in quiet mode (only numeric IDs):
docker images --quiet

# To list all Docker images not used by any container:
docker images --filter dangling=true

# To list images that contain a substring in their name:
docker images "<*name*>"

# To sort images by size:
docker images --format "<.ID>\t<.Size>\t<.Repository>:<.Tag>" | sort -k 2 -h

##

# To update all Docker images already pulled
# See: https://jonlabelle.com/snippets/view/shell/update-all-docker-images