For software development and maintenance, contact me at contact@appsoftware.com or via appsoftware.com


Docker List Volume Sizes

Tue, 07 Mar 2023 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

The information provided on this Website is for general informational and educational purposes only. While we strive to provide accurate and up-to-date information, we make no warranties or representations, express or implied, as to the accuracy, completeness, reliability, or suitability of the content, including code samples and product recommendations, presented on this Website.

The use of any information, code samples, or product recommendations on this Website is entirely at your own risk, and we shall not be held liable for any loss or damage, direct or indirect, arising from or in connection with the use of this Website or the information provided herein.
UI block loader
One moment please ...