Installing docker on azure virtual machine windows 10

前端 未结 3 1557
囚心锁ツ
囚心锁ツ 2021-02-13 04:05

I am getting an error upon installing docker on azure virtual machine.

m/c configuration: azure vm, windows 10 enterprise, Intel 2.4 GHz, 7 GB RAM, 64-bit opera

相关标签:
3条回答
  • 2021-02-13 04:18

    Here is a solution if you are getting this error on Azure Windows 10 VM where you have installed Docker:

    1. Ensure Windows Hyper-V featutes are enabled by running PowerShell cmdlet:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -Verbose

    1. Ensure Windows Containers feature is enabled by running PowerShell cmdlet:

    Enable-WindowsOptionalFeature -Online -FeatureName Containers -All -Verbose

    1. Ensure Hypervisor is set to auto start in the Boot Configuration Database (BCD) by running in elevated command prompt the command:

    bcdedit /set hypervisorlaunchtype Auto

    After running all of the above and you restart the Azure VM, Docker should be starting normally.

    0 讨论(0)
  • 2021-02-13 04:35

    Microsoft offers images with preinstalled docker enterprise. This works even on a B2s VM. Just select any of the "Microsoft Server 2019/2016 Datacenter with containers" image while creating the VM.

    0 讨论(0)
  • 2021-02-13 04:39

    Azure doesnt yet allow for nested virtualization.
    You need to use DSv3 or E3 instances for that. Just use docker like you normally would

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