Checking Docker Disk Usage

Need to find what’s eating your storage? Use these two commands:

1. Check Container Sizes

Shows the writable layer size vs. the total image size for each container.

docker ps --size
Code language: Bash (bash)

2. Overall Storage Summary

Shows a summary of images, containers, and volumes.

docker system df
Code language: Bash (bash)

Need more detail? Add the verbose flag to see exactly which items are taking up space:

docker system df -vCode language: Bash (bash)

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.