Skip to content
Home » Filter Docker images

Filter Docker images

To filter the Docker image list results, use the docker images command with the –filter option, followed by the filter as a key-value tuple.

sudo docker images --filter "<key>=<value>"

If we want to isolate all images beginning with ubuntu , we may use the following command.

sudo docker images --filter "reference=ubuntu*"

If you want to see a list of Docker images that were created before another image, use the following command.

sudo docker images --filter "before=ubuntu:18.04"