Changing Docker Container Folder on Windows Server

Posted on

First stop your docker service

stop-service docker

Create a new folder called daemon.json in the folder C:\ProgramData\docker\config and then put the following content inside, to set a new folder for your images.

   "data-root": "d:\\dockerdata"

Then restart the Docker Service.

 Restart-Service Docker

The images won’t be transferred to the new folder, so you’ll have to do that afterwards manually.

Leave a Reply