Run container in Azure VM

Posted by John Liu on Sunday, January 14, 2024

We can run container (using Docker Desktop) inside Azure VM. Following are some considerations for the setup.

Not all Azure VM support container. D4_v5 and above VM support nested virtulization.

When creating the Zure VM, ensure the security type on the Basic tab is set to “Standard”, not “Trusted Launch”. Trusted Launch does not support Nested Virtualization. Azure Portal default to Trusted Launch.

After VM is created, turn Windows featur “Windows Hypervisor Platform” on.

Install WSL: wsl –install -d Ubuntu

Install Docker Desktop and create the container.