root@vmanalyst.com:~# docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 5 2 2.572GB 2.099GB (81%)
Containers 4 0 3.342kB 3.342kB (100%)
Local Volumes 3 1 475.9kB 475.9kB (100%)
Build Cache 0 0 0B 0B
root@vmanalyst.com:~#
-v will show what component is using all the space.
Show docker disk usage
root@vmanalyst.com:~# docker system df -v
Images space usage:
REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
xwiki latest c861ab895d57 46 hours ago 1.304GB 944.9MB 359MB 0
xwiki lts-mysql-tomcat 402328d47d38 46 hours ago 1.292GB 944.9MB 347.1MB 0
mysql 5.7 8679ced16d20 2 weeks ago 448.5MB 135.3MB 313.2MB 0
mysql latest e3fcc9e1cc04 2 weeks ago 544.2MB 135.3MB 408.9MB 1
nginx latest 8cf1bfb43ff5 2 weeks ago 132.5MB 69.21MB 63.27MB 3
Containers space usage:
CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS
NAMES
e16f4647cfcd mysql “docker-entrypoint.s…” 1 0B 24 hours ago Exited (1) 4 hours ago
nginx3
620eac862768 nginx “/docker-entrypoint.…” 0 1.11kB 25 hours ago Exited (0) 19 hours ago
mynginx2
3d83637a4d63 nginx “/docker-entrypoint.…” 0 1.11kB 25 hours ago Exited (0) 24 hours ago mynginx
1bf90bc92cb8 nginx “/docker-entrypoint.…” 0 1.11kB 29 hours ago Exited (0) 25 hours ago nginx1
Local Volumes space usage:
VOLUME NAME LINKS SIZE
34252021824ff5b4beaef204d6b0df9dac8ec3e51cfb01a7c03787bdb55eef50 0 0B
5412a731a4a389523b788be5efe9f84e440aa2fd32c282a704e8c8df03e06171 1 0B
892da5f38b4516b50b019b2f6b00bbd4fb4bd496089aff22a2beb01bf4b26993 0 475.9kB
Build cache usage: 0B
CACHE ID CACHE TYPE SIZE CREATED LAST USED USAGE SHARED
root@vmanalyst.com:~#