How to List Docker Image using docker Command in Microsoft Windows

Posted on

Introduction

This article will again show another topic regarding the usage of docker command. But in this case, the usage is specifically on how to list the docker image available in the local device. So, in this case, the example will use a device running using Microsoft Windows as its operating system. Before going on further, just make sure that there is a Docker application available in the device. As for the Microsoft Windows operating system, in this context, it will use a Docker Desktop application. In order to have the Docker Desktop application, just visit the page in this link. In that page, there is a specific link for download. As for the example in this article, the download link appearance will be available for the 64-bit version of Docker Desktop Application installer for the Microsoft Windows operating system. That specific download link exist in this link.

How to List Docker Image using docker Command in Microsoft Windows

As it is already mentioned before, the process for listing the docker image is specifically for those images available locally in the device. So, the following will present the sequence for listing docker image available locally :

  1. First of all, just make sure that the Docker Desktop Service is running. Actually, there is several way to check whether the Docker Desktop Service is running or not. If there is a Docker Desktop application exist in the task bar, the possibility for the service is running is quite high. Just execute it in order to display the Docker Desktop window and make sure that it is running. The other is access the Services list window and search the service with the name of ‘Docker Desktop Service’. Just make sure that the status of that service is running.

  2. Next, run the Command Prompt for executing the docker command.

  3. Continue on, just type the docker command. Along with that docker command, do not forget to include the additional command parameter. In this case, it is the additinal command parameter for listing the docker image. As an example, the following is the execution of it :

    C:\Users\Personal>docker image list --all
    REPOSITORY   TAG       IMAGE ID       CREATED      SIZE
    wordpress    latest    21b1833683d3   2 days ago   609MB
    mysql        5.7       7ccb2b64de3b   4 days ago   462MB
    C:\Users\Personal>
    

    According to the output of the above command execution, there is two images available locally. The first one is ‘wordpress’ and the second one is ‘mysql’. By looking at the output of the above command, it is obvious that the docker command for listing the docker image available locally is a success.

Leave a Reply