Docker Images
29%
Managing & Inspecting Images
A simple command to start with when it comes to Docker images is docker images, which lists all images currently stored on your local machine. The output includes columns for the repository name, tag, image ID, creation date, and size.
For example:
# Pull some images
docker pull busybox
docker pull alpine
# List them
docker images
# or
docker image ls
You can get more information about an image by using the docker image inspect command:
docker image inspect alpine
You can also print a custom output that shows the ID and size of the image:
docker images --format "{{.ID}}: {{.Size}}"
To view the repository, type:
docker images --format "{{.ID}}: {{.Repository}}"
To view all (ID, repository, tag, size):
docker images --format "{{.ID}}: {{.Repository}}:{{.Tag}} - {{.Size}}"
Painless Docker - 2nd Edition
A Comprehensive Guide to Mastering Docker and its EcosystemEnroll now to unlock all content and receive all future updates for free.
Unlock now  $31.99$25.59Learn More
Hurry! This limited time offer ends in:
To redeem this offer, copy the coupon code below and apply it at checkout:
