Change Docker native images location on Windows 10 Pro Change Docker native images location on Windows 10 Pro docker docker

Change Docker native images location on Windows 10 Pro


In my case(Windows10 with Docker Desktop) none of the above solutions did help me. I found the solution , run this commands . This command change docker directory to drive D: (don't forget to quit docker desktop)

wsl --shutdownwsl --export docker-desktop-data docker-desktop-data.tarwsl --unregister docker-desktop-datawsl --import docker-desktop-data D:\docker-new-repo\ docker-desktop-data.tar --version 2

And now you can delete .tar file


Docker Version : 2.2.0.3 (42716)

  1. Right-click on docker icon on desktop tray

enter image description here

  1. Click on Settings

enter image description here

3 Click on Resources from the left-hand menu then under the Disk Image location click on browse and change the location

  1. Click on apply and restart


I found a solution here

Docker native, on Windows, runs in a Hyper-V virtual machine.

Move existing docker VM

I have to move the VM used by docker to the desired location.I did this using the GUI of Hyper-V manager.The VM for docker is called MobyLinuxVM.

  • Right-click MobyLinuxVM
  • Select Move
  • Select desired location

Set location of futures Hyper-V VMs

And to be sure futures VMs of Hyper-V will be stored on my secondary drive,I followed those instructions

In a powershell terminal (destination folders must exist)

SET-VMHOST –computername <computer> –virtualharddiskpath 'D:\Hyper-V_Virtual-Hard_Disks'SET-VMHOST –computername <computer> –virtualmachinepath 'D:\Hyper-V_VMs'