4th Floor, 4 Tabernacle Street London EC2A 4LU

Set WSL Version2

1 . Open Windows command prompt

2. Get current version:

wsl -l -v

NAME STATE VERSION
* Ubuntu-20.04 Running 1
docker-desktop Running 2
docker-desktop-data Running 2

 

3. Switch version

wsl –set-version Ubuntu-20.04 2

 

4. Verify

wsl -l -v

NAME STATE VERSION
* Ubuntu-20.04 STOPPED 2
docker-desktop Running 2
docker-desktop-data Running 2