Docker Community Forums

Share and learn in the Docker community.

How to change the location of hard disk images


I need your help for my problem.

I have two hard disk. An SSD (125go, C:) and an HDD (1To, D:)

Docker desktop installs automatically in my SSD and in others files. I would like to install or change location of my image in my hard disk D:\ .

I have tested to add data-root : D:\docker in Daemon.json file but it doesn’t work.

I search my images but I can’t find them.

I hope you will find a way to help me.

Can you confirm the path is: C:\ProgramData\Docker\config\daemon.json, also with a lowercase daemon.json?

according to: Configure Docker in Windows | Microsoft Docs

the path should be written as:

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

Yes, but is me why creating the file “daemon.json”.

I have adding the data-root like of configure of Microsoft