You can specify the docker data file path by passing in the --data-root in the command line switches to dockerd.exe.
Stop your service:
sc stop docker
Unregister your dockerd service:
dockerd --unregister-service
Then re-register your service with the new data-file path:
dockerd --register-service --data-root e:\ProgramData\docker
Then start your service
sc start docker
help infos:
Note:
previous configured data in c:\ProgramData\Docker is lost when you change the install location.
It’s like a new install to a new location. (images, containers, etc)