Can I run Docker in a Virtual Machine?

后端 未结 4 1466
一向
一向 2021-01-31 15:18

I tried to run Docker on a virtual machine.

Host : MacBook 
VM : Parallels Windows 7

And error occurs:

Is it possible?

4条回答
  •  遥遥无期
    2021-01-31 15:26

    If you would be using Windows 10 Pro or Enterprise and Hyper-V, then all you must do is to enable nested virtualization. On your host, just run (with your guest off):

    > Set-VMProcessor -VMName  -ExposeVirtualizationExtensions $true
    

    Now you can start your guest and run Docker Desktop as normal.

提交回复
热议问题