There are two options to configure Docker support. WSL2 recommended
In order for Docker to work on a Windows 10 VM you need to install Hyper-V or use Windows Subsystem for Linux 2 (WSL2). Therefore you must use hardware that supports Nested Virtualization. A detailed Setup Guide can be found here.
Install Hyper-V using setup-docker.ps1
and restart after execution.
Check Docker Settings:
Open PowerShell as Administrator and run:
wsl --install
Reboot your machine & open WSL and set your root user & password:
user=azlabadmin
pwd=Lab@dmin1234
Install Docker Desktop using an elevated Powershell:
choco install docker-desktop -y
Log off and on after installation:
Note: Enter
logoff
in the current console
Start Docker Desktop and switch to settings:
Check the WSL2 settings:
In the console window execute:
docker run hello-world
To avoid switching between Host an VM you can use Microsoft Teams Web Client to see all Chat messages