Change .docker directory on Windows

The standard path on Windows where Docker puts stuff is:


We need to put it here:

  • docker-compose - how to escape environment variables
  • Can't connect to docker published port for tftp
  • how to use test-kitchen in multi node environment?
  • how to activate/passivate docker containers in aws
  • Docker secret not working for MYSQL_ROOT_PASSWORD_FILE
  • Dockerfile can't find
  • D:\Docker

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

  • Docker inspect format to retreive IP of a particular network
  • connecting to a docker-compose mysql container denies access but docker running same image does not
  • Docker container's networkMode changes to default when running the container
  • Pass parameters to docker container using docker run command
  • How to install and run postgress using docker-compose.yml version “1”
  • Tensorboard Site cannot be found
  • 2 Solutions collect form web for “Change .docker directory on Windows”

    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.)

    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

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