https://rancher.com/ logo
Title
m

melodic-agent-86823

02/15/2023, 9:42 AM
Hallo, Can anyone tell me how I can cleanup & shrink the constantly growing vhdx file on Docker Desktop on WSL2 (Windows 11) machine which is already at 130GBs and growing. I have seen in rancher-desktop WSL distro that it's /mnt/wsl/rancher-desktop/run/data/var/lib/rancher/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs which is eating 99GB and io.containerd.content.v1.content 25GBs. I already tried deleting outdated images on rancher-desktop and then compacting the file with diskpart but to no avail. I just don't want to shrink, so can I somehow shrink the io.containerd.snapshotter.v1.overlayfs whatever it contains?
p

proud-jewelry-46860

02/15/2023, 7:06 PM
That's part of the
rancher-desktop-data
distro, and unfortunately https://github.com/microsoft/WSL/issues/4699 is still open so there's no built-in way to do that. It sounds like Windows Pro might have an
Optimize-VHD
PowerShell command that might help?