-
The default location of the Docker Desktop WSL virtual disk is the C drive and bigger containers can lead the C drive to get full quickly. In case we want to move the docker desktop disk to a different drive/location we can follow the steps below:
-
Docker disk default location at (%LOCALAPPDATA%/Docker/wsl/data)
-
Open PowerShell with Admin rights
-
Quit Docker Desktop
-
And run following command to get the docker-desktop-data file name
-
wsl -l -v
-
Shutdown the wsl
-
wsl --shutdown
-
Export the docker-desktop-data to some other location as tar file
-
wsl --export docker-desktop-data d:\dddisk\dockerdisk.tar
-
Import the exported tar file as new docker-desktop-data
-
wsl --import docker-desktop-data d:\dddsik\ddesktop d:\dddisk\dockerdisk.tar
-
Check that all components are running again
-
wsl -l
Restart docker desktop