Docker

How to List Container Images in PowerShell?

The docker container images are a standalone, lightweight, and executable package of software that contains everything needed to execute a service or application. It has libraries, application code, dependencies, runtime environment, and configuration files. More specifically, container images are designed to be portable and can run consistently in any environment.

This study will illustrate:

How to List All Container Images in PowerShell?

To list all container images in PowerShell, first, open Windows PowerShell as an administrator. Then, execute the “docker images -a” command:

docker images -a

In the below screenshot, all the docker images can be seen:

Alternatively, utilize the following command to display all docker images:

docker image ls --all

Here, the “–all” option works the same as “-a”:

How to List a Specific Container Image in PowerShell?

To list a specific container image for viewing its details, run the “docker images” command along with the particular image name:

docker images alpine

The below output displays detailed information, such as tag, image id, creation time, and size of the “alpine” image:

We have explained the easiest ways of listing the container images in PowerShell.

Conclusion

To list all container images, the “docker images -a” or “docker image ls –all” command is used. Moreover, utilize the “docker images <image-name>” command to list the specific container image for viewing its details. This write-up illustrated the methods to list the container images in PowerShell.

About the author

Laiba Younas

I have done bachelors in Computer Science. Being passionate about learning new technologies, I am interested in exploring different programming languages and sharing my experience with the world.