Docker Desktop stores docker data in 2 distros
- docker-desktop
- docker-desktop-data
These distros are installed on the system drive by default.
To move them to another drive, these distros can be exported, deleted and imported from the new location.
wsl --shutdown
wsl --export docker-desktop <export path>\docker-desktop.tar
wsl --export docker-desktop-data <export path>\docker-desktop-data.tar
wsl --unregister docker-desktop
wsl --unregister docker-desktop-data
wsl --import docker-desktop <new location, e.g another drive> <export path>\docker-desktop.tar
wsl --import docker-desktop-data <new location, e.g another drive> <export path>\docker-desktop-data.tar
- https://dev.to/kimcuonthenet/move-docker-desktop-data-distro-out-of-system-drive-4cg2
- https://docs.microsoft.com/en-us/windows/wsl/install-manual
- https://docs.microsoft.com/en-us/powershell/module/appx/move-appxpackage?view=windowsserver2019-ps
- https://social.technet.microsoft.com/Forums/en-US/962f0c63-7a44-4b22-bd0f-2ba1e7df6ade/addappxpackage-install-path?forum=win10itproapps
- https://docs.docker.com/docker-for-windows/wsl/
Thanks! Exactly what I was searching for 🙂