Menu
Coddy logo textTech

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 images

The 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 icon

Challenge

Beginner

List only the python images by running docker images python.

Cheat sheet

List all local images with docker images:

docker images

Output columns: REPOSITORY, TAG, IMAGE ID, CREATED, SIZE.

Filter by repository name:

docker images alpine

Try it yourself

Terminal
quiz iconTest yourself

This lesson includes a short quiz. Start the lesson to answer it and track your progress.

All lessons in Introduction to Docker