Hi, I'm sure this topic has come up multiple times...
# rancher-desktop
w
Hi, I'm sure this topic has come up multiple times, but so far, I haven't found a suitable solution. So, I'm writing to ask for help. I use Windows + WSL + Rancher Desktop. Some time ago, I generated a large number of volumes, which took up space on my Windows disk. I removed the volumes using
docker volume prune
, which freed up about 400GB of space. The command returns the following: wsl.exe --system -d rancher-desktop df -h /mnt/wslg/distro Filesystem Size Used Avail Use% Mounted on /dev/sde 1007G 157G 799G 17% /mnt/wslg/distro However,
C:\...\AppData\Local\rancher-desktop\distro-data\ext4
still takes up around 400GB more space. In summary, after removing the volumes, Windows didn't recover the space, which is now causing me to run out of space on the Windows system itself. Is there a "proper" way to refresh/recover the occupied space without having to reinstall Rancher Desktop, and in a safe way that won't damage the remaining images I'm still using? Thank you for your help, and I sorry if I'm bringing this issue up again, but I need to do this safely without destroying other data.
w
yeah prune will reclaim storage inside the VM, but but the actual file itself. did you toy with https://devblogs.microsoft.com/commandline/windows-subsystem-for-linux-september-2023-update/#automatic-disk-space-clea[…]ce-clean-up-set-sparse-vhd to see if you can compact the vdisk? You can also do it manually using
diskpart
https://stephenreescarter.net/how-to-shrink-a-wsl2-virtual-disk/