Home ยป How to list docker images by name and tag

How to list docker images by name and tag

The docker images command accepts an optional [REPOSITORY[:TAG]] parameter, which limits the list to images matching the argument. If you only specify REPOSITORY and no TAG, the docker images command returns a list of all images in the specified repository.

Note : Use sudo before docker if you using ubuntu based environment

Syntax:

docker images [REPOSITORY[:TAG]]

Example:

To list all the images that start with python run the below command:

docker images python

If you are using [REPOSITORY[:TAG]] then it should be an exact match. consider the the image python has tag 3.7 then the command looks like:

docker images python:3.7

If you provide wrong tag, None will be displayed.

Also Read:
Copy file from host VM to Docker container
Copying files from Docker container to host VM
Filter Docker images
How to list all docker images
Get Docker containerโ€™s IP address from the host
Git Clone using Password
How does static variable work in C
How to call a Global variable in to a function in C
How to Check Current Jetson Jetpack Version
How to select rows from a DataFrame based on column values
How to pass a function as a parameter