How could I install Docker for Windows on drive E: (my SSD C: is full)?

Yes, it is possible to install Docker in another path than C:\ProgramData\Docker, To do this you need to specify the install directory when you are running the Docker setup. You can also move the existing Docker folder to the E:\ProgramData\Docker folder if needed.

download the exe file and run below command
& ‘.\Docker Desktop Installer.exe’ install --installation-dir=F:\prgms\docker

1 Like

That’s just the tip of the iceberg, the bottom is located in %LOCALAPPDATA%\Docker\wsl\data → its the vhdx file of the docker-desktop-data distribution.

Moving just the application to another drive is not going to free up much space… If you want to be created on a different drive, you need to follow the suggestion posted in How could I install Docker for Windows on drive E: (my SSD C: is full)? - #3 by bryoncline

For anyone asking. Here is how i did it with PowerShell:

Start-Process -Wait -FilePath “Path to your docker downloaded installer” -ArgumentList “install”, “–installation-dir=Path to your custom install dir”

This worked for me under win10:

Open Command prompt with admin privileges, then move to dir with installer exe, then:

“Docker Desktop Installer.exe” install --installation-dir=“H:\Program Files\Docker”

Saved 2.5GB on C: drive.

Then in settings>Ressources>Advanced you can also change disk image folder location (you may need to run Docker as admin or you’ll get an error)