These two parameters control where the Docker Desktop application itself, and the path the wsl2 distributions (that run the docker engine backend) are stored:
--installation-dir=<path> Changes the default installation location (C:\Program Files\Docker\Docker)
--wsl-default-data-root=<path> Changes the default wsl data location
Just pointing the installation dir to another drive isn’t that beneficial, as its size is just a handful of GB, though the wsl default data root that stores the Docker Desktop backend and data can easily grow from two to four digit GB consumption, depending on the usage.
If you want to use Windows Containers as well, you need to set these parameters as well:
--hyper-v-default-data-root=<path> Changes the default hyper-v VM disk location
--windows-containers-default-data-root=<path> Changes the default windows containers data root
Docker Buisness customers can additionaly leverage settings-management to preconfigure Docker Desktop during role out. Though, I haven’t seen it configure the above two parameters.
Because that repository is not for feature requests and it was closed by a robot due to inactivity. There is another one, the “Roadmap” for feature requests which is linked in the closed issue. This one:
you can force Docker Desktop to install on a different drive by running the official installer with command-line flags.
Download the Docker Desktop Installer.exe from the official Docker website.
Open Command Prompt (cmd.exe) as an administrator.
Navigate to your downloads folder by running:cd %USERPROFILE%\Downloads
Run the following command to start the silent installation and specify your D: drive as the location:start /wait "" "Docker Desktop Installer.exe" install --quiet --installation-dir="D:\D