Docker desktop throws 20GB on c:\
. This is how you can move that to another drive like D:\wsl.2023\
ext:vhdx
π> wsl --list
Windows Subsystem for Linux Distributions:
Ubuntu (Default)
docker-desktop
docker-desktop-data
π> wsl --shutdown
π> wsl --export docker-desktop 'D:\wsl.2023\docker-desktop.vhdx' --vhd
Export in progress, this may take a few minutes.
The operation completed successfully.
π> wsl --unregister docker-desktop-data
Unregistering.
The operation completed successfully.
π> wsl --unregister docker-desktop-data
π> wsl --import-in-place docker-desktop-data 'D:\wsl.2023\docker-desktop-data.vhdx'
The operation completed successfully.