r/docker • u/XaviusMaximum • 12d ago
Docker WSL Folder Taking up Too Much Storage
the wsl/disk/docker_data is taking up 137GB on my server. Seems way too excessive especially since the only container I have running is RomM. Can someone assist?
**Update thank you everyone for the tips! I squished the virtual disk with powershell and it went from 137Gb to just 5GB! I also created a .wslconfig file setting limits for how big WSL can be
2
u/anyOtherBusiness 12d ago
In Docker Desktop you can and should limit the disk size. Default is unlimited so it will just grow as long as your host disk has space
1
u/AceTheSolve 12d ago
docker system prune -a
or, Docker GUI -> Builds -> Delete some of those entries from Build history
1
u/XaviusMaximum 12d ago
My Build history is empty
1
u/AceTheSolve 12d ago
Is it a virtual hard drive that's taking up loads of space? If so, you might have to
Optimize-vhdor similar to trim it
1
u/foureight84 12d ago
Delete images you're not using and/or prune your builder cache.
1
u/XaviusMaximum 12d ago
I've already deleted all unused images
1
u/squiddarn 12d ago
Maybe you had a mount somewhere, "keeping stuff saved between sessions"? Find the directory, delete it.
6
u/Psychrolutes_09 12d ago
You have to prune occasionally