5

The standard path on Windows where Docker puts stuff is:

C:\Users\<USER>\.docker

We need to put it here:

D:\Docker

We couldn't find any info about where or how to change that setting. Any hint appreciated, thanks!

Andrej Stieben
  • 183
  • 3
  • 11
  • Just in case someone stumbles upon this question in the future, I added the MACHINE_STORAGE_PATH environment variable as suggested in: http://stackoverflow.com/questions/33933107/change-docker-machine-location-windows and it worked! – martintama Jun 06 '16 at 15:20

2 Answers2

5

One solution that works for us is creating a symbolic link:

mklink /J "C:\Users\<USER>\.docker" "D:\Docker"

But it's not what we call a clean solution.

(All credit for the question & this answer goes to IMM0rtalis.)

Community
  • 1
  • 1
Andrej Stieben
  • 183
  • 3
  • 11
  • This will cause `Waiting for SSH to be available...` while run `docker-machine create` - docker for win10 hyper-h mode – Archon May 06 '19 at 09:54
0

You simply can define the environment variable HOME before launching a new boot2docker or docker machine session.

set HOME=D:\docker

(Add it to your user environment variables if you want it to persists across CMD sessions)

Those tools will look for any config in $HOME/.xxx

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283