View the total space occupied by docker
First df -h to see the docker directory.
To check the size of this directory and get the total disk space used by Docker, execute:
sudo du -sh /var/lib/docker_data
4.1T /var/lib/docker_data
View the details of the space occupied by docker
总的:
docker system df
详细的:
docker system df -v
View the space occupied by the docker image
docker images
Check running container size
docker ps --size
注意:虚拟大小(virtual)包括共享的底层镜像。
Disk usage of a specific docker container
docker inspect 容器名称