Docker tip for DevOpsđź’ˇ: discover how much disk space Docker takes up on your system.

Andrey Byhalenko
DevOps Manuals and Technical Notes
2 min readJan 18, 2024

Want to know how much disk space Docker takes up on your system?
In this short tutorial, I will show you how.

Use the command docker system df to see the Docker disk usage.

$ docker system df

On the output, you see the following:

  • TYPE: type of docker resource (image, container, volume, etc.)
  • TOTAL: total resources, active and inactive.
  • ACTIVE: total active resources.
  • SIZE: size of the resources.
  • RECLAIMABLE: the space consumed by “unused” resources. In other words, it’s the total size of resources you can remove without breaking anything.
    This is what Docker will remove if you run docker system prune -a.

Another variation of the command is docker system df -v, it shows detailed information on space usage.

$ docker system df -v

You can also display the output in a custom template using — — format:

If you liked my articles, join my newsletter, and you will receive weekly DevOps tutorials, articles, and tips every Saturday.

As a bonus, you will receive a free step-by-step DevOps CI/CD project, which you can use in your portfolio.

Subscribe here: https://junior-devops-hub.ck.page

--

--

Andrey Byhalenko
DevOps Manuals and Technical Notes

I'm a DevOps Engineer, Photography Enthusiast, and Traveler. I write articles aimed at junior DevOps engineers and those aspiring to become DevOps engineers.