
In order to know what size is utilized by a docker container we can make use of the docker ps command with --size option.
Example:% docker ps -a --size --format "table {{.ID}}\t{{.Names}}\t{{.Image}}\t{{.Size}}"
CONTAINER ID NAMES IMAGE SIZE
9f02645eac99 nifty_yalow nginx 1.09kB (virtual 135MB)
6df1f3248f02 modest_montalcini alpine 0B (virtual 5.29MB)
31b01099d9d6 competent_pasteur alpine 539MB (virtual 544MB)
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!