Docker List Volume Sizes

Tue, 07 Mar 2023 10:52 UTC by garethbrown

Execute this command in your terminal to list docker volume sizes. It will also list container sizes:

$ docker system df -v

You will see output similar to that below, note the volume sizes in pretty format at the bottom.

CONTAINER ID   IMAGE                               COMMAND                  LOCAL VOLUMES   SIZE      CREATED        STATUS       NAMES
887b5da6b0f9   dpage/pgadmin4:6.20                 "/bin/sh -c ' mkdir …"   1               464B      25 hours ago   Up 2 hours   example-project-pgadmin4-1
f5f4dc71233e   nginx:1.23.3                        "/docker-entrypoint.…"   0               1.09kB    25 hours ago   Up 2 hours   example-project-nginx-1
09aa1a85470b   postgres:13.7-bullseye              "docker-entrypoint.s…"   1               63B       25 hours ago   Up 2 hours   example-project-postgres-1
f92bb6863f6a   rabbitmq:3.7.15-management-alpine   "docker-entrypoint.s…"   2               199B      25 hours ago   Up 2 hours   example-project-rabbitmq-1
11888a77fcf8   redis:7.0.8-bullseye                "docker-entrypoint.s…"   1               0B        25 hours ago   Up 2 hours   example-project-redis-1

Local Volumes space usage:

VOLUME NAME                         LINKS     SIZE
example-project_postgres        1         88.95GB
example-project_rabbitmq-data   1         4.309MB
example-project_rabbitmq-log    1         72.5kB
example-project_redis           1         0B
example-project_pgadmin4        1         168kB

Build cache usage: 0B
UI block loader
One moment please ...