Listing Images
Part of the Introduction to Docker section of Coddy's Terminal journey — lesson 4 of 40.
To see which images are available locally, use docker images:
docker imagesThe output is a table with one row per image:
REPOSITORY TAG IMAGE ID CREATED SIZE
alpine latest c8be21c88f2a 1 day ago 7.34MB
ubuntu latest 75afc20638b6 4 days ago 81.8MB- REPOSITORY and TAG name the image
- IMAGE ID is a short unique identifier
- SIZE is how much disk the image uses
To narrow the list to one repository, pass its name: docker images alpine shows only the alpine tags.
Challenge
BeginnerList only the python images by running docker images python.
Cheat sheet
List all local images with docker images:
docker imagesOutput columns: REPOSITORY, TAG, IMAGE ID, CREATED, SIZE.
Filter by repository name:
docker images alpineTry it yourself
This lesson includes a short quiz. Start the lesson to answer it and track your progress.