'Docker/windowsfilter takes huge amount of diskspace
I am using docker for windows and I noticed my c drive was getting full. When i looked I noticed that there is 15 gb of data here: Docker/windowsfilter
. I use docker sporadically so I do not need to keep any images or containers.
So I googled some and tried suggestions like docker system prune
docker image prune
and the same for containers etc.
This did not seem to work and I could not find another proper solution so in the end I tried an often mentioned tool docker-ci-zap
however no luck here either
Finally I tried a factory reset of docker itself which as I understand should delete everything.
However Docker/windowsfilter
is still 15 gb. How can I get rid of this data?
Solution 1:[1]
Try https://github.com/moby/docker-ci-zap. Just download docker-ci-zap.exe
from that repo and run it .\docker-ci-zap.exe -folder "C:\ProgramData\docker"
. Worked for me and it is much faster than reinstall Docker.
Solution 2:[2]
I deleted the entire Docker folder inside ProgramData using the below trick, I hope this will also work for deleting the windowsfilter folder
Pre-requisite : Needs git bash to be installed
- Run git bash
- rm -rf windowsfilter\
I think the above workaround will also work with WSL terminal, but haven't tested myself
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Radim Göth |
Solution 2 | Vignesh Nandakumar |