Change Docker native images location on Windows 10 Pro

前端 未结 7 1887
北荒
北荒 2020-12-29 05:55

This is not a duplicate of Change Docker machine location - Windows

I\'m using docker native, version 1.12.1-stable (build: 7135) on Windows 10 Pro with Hyp

相关标签:
7条回答
  • 2020-12-29 06:46

    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'

    0 讨论(0)
提交回复
热议问题