OneBite.Dev - Coding blog in a bite size

list docker images

Simple docker step by step how to list docker images with explanation

Understanding the number and types of Docker images available on your computer can be crucial for managing your containerized apps. Here’s a step-by-step guide on how to list Docker images.

Firstly, ensure Docker is installed on your computer. Docker can be installed on most operating systems, including Windows, Linux, and macOS. It’s important to note that Docker uses different commands depending on the operating system, but the command to list Docker images remains consistent.

Step 1: Open the Terminal

Whatever your operating system, the first step is to open the terminal. For Linux and macOS, this is the built-in Terminal application. For Windows, you can use the Command Prompt or PowerShell.

Step 2: Check The Docker Version

Before you start listing the Docker images, it’s good practice to check if Docker is installed properly and what version you’re currently running. This can be done with the command:

docker --version

Executing this command will let you know the installed version of Docker in your system.

Step 3: List Docker Images

Now you can list all the downloaded Docker images on your system. The command for this is:

docker images

After running this command, you’ll see a list displayed in your terminal, with the following columns:

  • REPOSITORY: the name of the image.
  • TAG: the tag of the image.
  • IMAGE ID: the id of the image.
  • CREATED: the date the image was created.
  • SIZE: the size of the image.

This list provides you with all the necessary details about your Docker images.

Step 4: Understanding the List

The Docker image list can be quite long, especially if you’ve been using Docker for a while. However, by understanding the difference between these columns, you can easily manage your Docker images effectively.

To conclude, listing Docker images is a straightforward process. By familiarizing yourself with the terminal and a few simple commands, you can always keep track of your Docker images. Remember to use docker images to list Docker images and re-use or remove images that are no longer needed, which will help keep your system clean and efficient.

docker