Debugging Docker Overlay2 Out of Space

“My docker container is using 80+ GB of disk space! My system is out of disk space! Help!” -a cry for help by someone experiencing a run away container eating up disk space. A common issue with using docker is the /var/lib/docker/overlay2 folder may take up gigabytes of space which will eventually cause an out of disk space issue on the host system. A quick google search reveals pieces of information but trying to debug this issue is difficult because it require understanding how the overlay2 file system works and tracing which container the overlay folder belongs to.

--

--

👨‍💻 Software Developer 👨‍🏫 Engineering Leader 🕵️‍♂️ Problem Solver

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Steven Bui

👨‍💻 Software Developer 👨‍🏫 Engineering Leader 🕵️‍♂️ Problem Solver