How to Get the Size of a Docker Image

Last updated on November 3, 2021 A Goodman Loading... Post a comment

This article shows you how to determine the size of a Docker image that is hosted on Docker Hub or a Docker image that was pulled to your local system.

Docker Hub’s Images

Go to the page of the image you want to know the size then select the Tags tab. Now you can see the size corresponding to each tag on the righthand side as shown below:

Pulled Images

Make sure Docker is running on your system then execute the following command:

docker image ls


docker images

And you will get a result like this one (focus on the SIZE column):

In case you want to go further and Inspect the layers of an image, just perform the command below:

docker history <image name or ID>


docker history node:latest



You’ve learned how to check the size of a Docker image. If you’d like to explore more new and exciting things about this awesome technology, take a look at the following articles:

You can also check out our Docker topic page for the latest tutorials, examples, tips, and tricks.

Notify of
Inline Feedbacks
View all comments

Related Articles