The standard path on Windows where Docker places stuff:
C:\Users\<USER>\.docker
We need to specify here:
D:\Docker
We could not find information on where and how to change this parameter. Any hint appreciated, thanks!
One solution that works for us is to create a symbolic link:
mklink /J "C:\Users\<USER>\.docker" "D:\Docker"
But this is not what we call a pure solution.
(All credit to the question, and this answer goes IMM0rtalis .)
You can simply define the HOME environment variable before starting a new boot2docker or docker machine .
set HOME=D:\docker
(add it to user environment variables if you want to keep it in CMD sessions)
These tools will look for any configuration in $HOME/.xxx
$HOME/.xxx