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 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?
Only certain Azure VMs support nested virtualization. This link shows which ones support it.
https://docs.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
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: