4

I just downloaded "Docker for Windows" from the Docker Hub website https://hub.docker.com/editions/community/docker-ce-desktop-windows

I am running an Azure VM with Windows 10 Pro N. The VM's size is 'Standard B2s (2 vcpus, 4 GB memory)'

I am getting the error below: enter image description here

I read this link: https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/

Is this issue due to VM size? If so, how do I install the version of Docker for this VM?

knowdotnet
  • 839
  • 1
  • 15
  • 29

2 Answers2

3

Only certain Azure VMs support nested virtualization. This link shows which ones support it.

https://learn.microsoft.com/en-us/azure/virtual-machines/acu

Look for the machines with "***" in the "vCPU: Core" column as the article states:

***Hyper-threaded and capable of running nested virtualization

Randall Sutton
  • 1,875
  • 19
  • 27
2

Yes, it due to the VM size. While you want to install Docker engine in the Windows VM, you need to enable the virtualization in the VM. And for Azure VM, it means the appropriate sizes for the VM. See the steps that enable nested virtualization in an Azure VM. Then the Docker engine will work well in the VM.

Here is the example, the vm size is Standard D2s v3 (2 vcpus, 8 GiB memory), then the docker engine installs in it and works well. Below is the screenshot:

enter image description here

Charles Xu
  • 29,862
  • 2
  • 22
  • 39
  • any link where i can get list of VM supported by nested virtualization? – knowdotnet Jun 20 '19 at 05:21
  • @knowdotnet The link is already existing in the document. I provide you again [here](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/acu). Take a look at the explanation below the document. – Charles Xu Jun 20 '19 at 05:28
  • i marked it as answer but this query is still open : link where i can get list of VM supported by nested virtualization. The link you mentioned gives list of all VM only – knowdotnet Jun 20 '19 at 08:49
  • @knowdotnet Do you see the description "***Hyper-threaded and capable of running nested virtualization" below the link? The size table shows the sizes that support the nested virtualization with the `***`. – Charles Xu Jun 20 '19 at 09:10
  • Thanks, i overlooked! – knowdotnet Jun 20 '19 at 13:17