How to check the size of a Docker Container

Know the size of docker containter

In order to know what size is utilized by a docker container we can make use of the docker ps command with --size option.

% docker ps -a --size --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Size}}"
9f02645eac99   nifty_yalow         nginx     1.09kB (virtual 135MB)
6df1f3248f02   modest_montalcini   alpine    0B (virtual 5.29MB)
31b01099d9d6   competent_pasteur   alpine    539MB (virtual 544MB)

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap