I want to move my docker images to another partition. Currently it is filling up my C: drive. I could neither find the directory where the current images are stored nor any option to move/change the location of docker images. Is it even possible to do it?
I am running docker version 1.12.0-rc2 on Windows 10.
We are not super efficient at maintaining Docker for windows running in a healthy state if you start tampering with the vm through the Hyper-V Manager.
Although we don’t provide a clean way through the UI to do this.
I opened Hyper-V manager and found out the location of the VM image (C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\MobyLinuxVM.vhdx). I closed the docker, and the Hyper-V manager and copied the VM disk to the location I wanted. I opened Hyper-V manager, updated the VM settings and voila!
I see the option, but the Advanced tab remains stubbornly grayed out/disabled, even after an uninstall/restart/install of Docker and with the “Advanced” toggle on the Daemon tab set.
Removing Docker, setting the default storage location in Hyper-V, and then installing Docker again appears to work. Possibly a bug in Windows (insider build 14986).
Using Docker desktop Version 2.0.0.3. Windows 10, this worked for me:
Shutdown Docker
Shutdown Hyper-V service
Copy the image with windows explorer ( C to X drive)
Start up Hyper-V Service
Change Hyper-V machine settings for hard disk and set to new location.
In Hyper-V own settings (!! crucial step), change Hard Disks default location to the same location (! without this docker will re-create disk in default location back in the C drive)
Start-up docker and in machine advanced settings check HDD settings.