Docker won't change VHD location

So I am running on win10 with Hyper-V.

Docker is currently using a harddrive instance thats stored on my C drive (which is an ssd with very little space) I want it on my sshd which is my D drive.

  • Building Go app with “vendor” directory on Jenkins with Docker
  • fabric8 springboot full example
  • Re-mount volume in a running container
  • App running in Docker on EB refuses connecting to self
  • Restart one service in docker swarm stack
  • Dropping priviliges inside of the container
  • The following is what I tried and has failed, because it looks like Docker just jumps back to its default every time.

    • change is using the docker interface in the advance section (to a copy of the vhdx file in the d drive)
    • changing it manually in the hyperv manager by having it migrate the harddrive to a new location

    As well as other variations where I restart my computer after doing these.

  • How to install docker in docker container?
  • Docker. Exec npm command in different folder
  • How to see which docker volume is or was being used by which container
  • Can't create Docker network
  • How to completely destroy docker container from marathon UI?
  • How to make mysql and php work together and without show the database password
  • One Solution collect form web for “Docker won't change VHD location”

    Use docker > settings > advanced > change vhd location. Notice, you should select an empty directory instead of copy the VHD file by yourself.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.