Share via

How to install docker on Azure VM (Windows Server 2016 Datacenter)

ccumaya 1 Reputation point
Oct 14, 2021, 9:59 AM

I have a VM on Azure. I want to install docker on it, so I can run some container in the VM using the same IP address.

I had surveyed some article, and got a sense "must enable Nested Virtualization ". But I don't know how to open this function on azure environment.

The VM information:

Operating system: Windows (Windows Server 2016 Datacenter)
Publisher: MicrosoftSQLServer
Offer: SQL2016SP2-WS2016
Plan: Express
VM generation: V1

Size: Standard D4s v3 (4 vcpus, 16 GiB memory)

Please help me, thank you

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,406 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. shiva patpi 13,271 Reputation points Microsoft Employee
    Oct 17, 2021, 10:11 PM

    Hello @ccumaya ,
    Thanks for reaching out to Microsoft Q&A platform.
    Basically any v3 size Azure VM supports Nested Virtualization. Based upon your current SKU (i.e. D4sv3) you should be able to enable it .
    A good blog on the nested virtualization and it's supported SKUs , how it works , etc. : https://azure.microsoft.com/en-us/blog/nested-virtualization-in-azure/

    Sequence of PowerShell commands to enable Nested Virtualization are here: https://github.com/charlieding/Virtualization-Documentation/tree/live/hyperv-tools/Nested

    Let us know if you have additional questions.

    Regards,
    Shiva.

    0 comments No comments

  2. ZEHRA G 1 Reputation point
    Apr 27, 2022, 7:12 AM

    Hi,

    I have Standard E8as v4 (8 vcpus, 64 GiB memory), and it supports nested virtualization. However, I am getting the following error when I want to install Docker. Could you help me about that?

    196779-microsoftteams-image.png

    Bests,
    Zehra

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.