Skip to content

How To Change Docker Data Path On Windows Host

The default path of Docker host data is C:\ProgramData\Docker.

To configure the Docker daemon using a JSON file, open the location C:\ProgramData\Docker\config and add daemon.json if it does not exist.

Now update the daemon.json as shown below.

{
 "data-root": "d:\\docker"
}

After updating my daemon.json file it looks like below one

{
  "data-root": "d:\\docker",
  "dns": [
    "10.0.0.2",
    "8.8.8.8"
  ],
  "experimental": false
}

Now restart your docker engine.

Comments are closed, but trackbacks and pingbacks are open.