-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do we change the install location to another drive? #436
Comments
Hey @beckerben, have you tried using Source: https://docs.docker.com/desktop/install/windows-install/#install-docker-desktop-on-windows |
We're installing on a windows server and can't use the docker desktop so are using the install-docker-ce.ps1 script provided in this repo. It doesn't seem to allow us to change the default installation path. We tried hacking it without success. |
I see. @brasmith-ms @Howard-Haiyang-Hao is there any limitations to setting |
Hello, it sounds like you would like to switch your "data-root" to a directory on the D: drive. This can be done adding a configuration file for Docker. Here is a doc that shows how to change the data-root among other configurations. The sample json in the example specifies the alternate path for the data (such as images and containers) to be stored: { Please note that Docker service needs to be restarted after adding/modifying Docker configurations. A simple powershell function to do this operation may look like this:
|
@beckerben I was able to get the docker data folder created on a different drive. Here are the steps that I took:
![]() Please let me know if this is anything else that I can help with. |
We are trying to figure out how to install to the "d:" drive rather than the "c:\ProgramData\Docker" and can't figure out how to do this. We tried specifying the DockerPath and DockerDPath parameters but ran into issues with that.
The text was updated successfully, but these errors were encountered: