1、查看docker使用情况
sudo docker system df
akon@akon-VirtualBox:~/桌面$ sudo docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 3 3 3.548GB 0B (0%)
Containers 3 2 7.592GB 31B (0%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
akon@akon-VirtualBox:~/桌面$
2、查看单个images,container 大小
docker system df -v
akon@akon-VirtualBox:~/桌面$ docker system df -v
Images space usage:
REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
mubuntu 16.041 4a1135f16424 23 hours ago 3.35GB 0B 3.35GB 1
ubuntu 18.04 ad080923604a 3 weeks ago 63.15MB 0B 63.15MB 1
ubuntu 16.04 b6f507652425 10 months ago 134.8MB 0B 134.8MB 1
Containers space usage:
CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS NAMES
e6362ba4f6d1 mubuntu:16.041 "/bin/bash" 0 31B 23 hours ago Exited (0) 23 hours ago test01
5ee647f379bb ubuntu:18.04 "/bin/bash" 0 3.62GB 38 hours ago Up 11 minutes rosMelodic
69fbe365192c ubuntu:16.04 "/bin/bash" 0 3.97GB 39 hours ago Up 13 hours rosKinetic
Local Volumes space usage:
VOLUME NAME LINKS SIZE
Build cache usage: 0B
CACHE ID CACHE TYPE SIZE CREATED LAST USED USAGE SHARED
akon@akon-VirtualBox:~/桌面$