Menu

Your Docker Containers Are Gone, But Your Disk Is Still Full: Understanding Docker Volumes
📰

Your Docker Containers Are Gone, But Your Disk Is Still Full: Understanding Docker Volumes

DEV Community: docker·Mohamed Hussain S·7 days ago
#b6ZL3svX
#devtodocker#devto#dev#docker#volumes
Reading 0:00
15s threshold

You remove old Docker containers. You clean up unused images. You even run docker system prune .

But somehow, your disk is still running out of space.

Sounds familiar?

I recently ran into this on my Linux machine. I had been using Docker for several projects involving ClickHouse, PostgreSQL, Airbyte, Superset, and other services. Over time, those experiments accumulated.

The containers were no longer running. Some projects hadn't been touched in months. Yet Docker was still consuming a significant amount of disk space.

What made this interesting was that the problem wasn't primarily the containers or images. A substantial amount of storage was sitting in persistent Docker volumes.

In this post, I'll walk through how I investigated the issue, identified the largest consumers, cleaned up unused Docker resources, and recovered disk space without deleting the data belonging to my active containers.

Let's get into it.

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.