docker system prune -a doesn't clean space, but troubleshoot option does

129 views Asked by At

I've been doing some tests with docker recently (in Linux), and eventually I thought I would like to do a clean up, so I found about the docker system prune command, and after running it I got this Total reclaimed space: 783MB .

But, after running the Disk Usage Analyzer I found that my .docker folder in Home is taking the same size, even after pulling the images and using prune again (with the -a flag also) the folder (and more specifically Docker.raw) still takes 3,1 GB.

So, I've tried using the Clean/Purge data option in the troubleshoot section of Docker Desktop, and it indeed worked, taking my folder again to 2,7 GB.

How could I achieve the same results using the terminal, as it's more practical? I know that the size is difference is now minimal, but I don't think the command will work even with a bigger file size. Thanks.

0

There are 0 answers