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.

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)
-




Have Questions? Post them here!