# Docker Community Forums

Share and learn in the Docker community.

# Docker installation directory

I am trying to install docker on win10 and it defaults to C:\Program Files\Docker. Is there anyway I can change the destination directory to be c:\users\xxx\Docker? I tried various options such as installing through CLI and using the msiexec INSTALL_DIR / TARGETDIR options and none of them seem to work. The default installer is not asking me for a target directory when I try to install.

4 Likes

Hi,

Did you find a solution for this?
Not sure if i want to try but, maybe this could work:
-deleting the windows service
-move the folder
-create the service

Thanks.

I have the same problem, but I need to change the install location to a different drive such as E:\

+1, also need this installation option

+1

Some corporate developer machines only allow installs to specific directories. Corporate software is blocking the pre-decided installation location.

Same here. Same here. Will I be able to choose the installation directory somewhen soon? Thanks.

+1
Is there any ongoing development regarding this?

Since the current version of Docker Desktop for Windows does not provide that option for installing to a custom path, you need to create a junction link before the installing, using the mklink command in cmd console.

1. Lets consider the current default installation path for docker is at C:\Program Files\Docker, and your target directory is at c:\Users\xxx\Docker , assuming the User Name is xxx. Note this target path could be on any drive such as E:\Docker, and you have to create the directory before creating the junction.
mklink /J "C:\Program Files\Docker" "c:\Users\xxx\Docker"