Skip to content

Latest commit

 

History

History
 
 

08-Docker-WSL

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Setup Docker & Windows Subsystem for Linux WSL

Setup Docker Support - optional

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.

Option 1 - Install Docker with Hyper-V

Install Hyper-V using setup-docker.ps1 and restart after execution.

Check Docker Settings:

docker-test

Option 2 - Install Docker with WSL2

Open PowerShell as Administrator and run:

wsl --install

Reboot your machine & open WSL and set your root user & password:

user=azlabadmin
pwd=Lab@dmin1234

ubuntu-setup

Install Docker Desktop using an elevated Powershell:

choco install docker-desktop -y

install-docker-desktop

Log off and on after installation:

log-off

Note: Enter logoff in the current console

Start Docker Desktop and switch to settings:

switch-settings

Check the WSL2 settings:

switch-settings


Test Docker Installation

In the console window execute:

docker run hello-world

docker-test

To avoid switching between Host an VM you can use Microsoft Teams Web Client to see all Chat messages