WSL 2 Installation on Win 10 (2004). Switching Docker from using Hyper-V to WSL 2 and back.

Published: 07 September 2020
on channel: Stoyan Cheresharov
11,833
34

1. Install the Windows Subsystem for Linux dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
2. Update to WSL 2
2.1. Enable the 'Virtual Machine Platform' optional component:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
2.2. Set WSL 2 as your default version
wsl --set-default-version 2
"You might see this message after running that command: WSL 2 requires an update to its kernel component. For information please visit https://aka.ms/wsl2kernel. Please follow the link (https://aka.ms/wsl2kernel) and install the MSI from that page on our documentation to install a Linux kernel on your machine for WSL 2 to use. "
https://docs.microsoft.com/bg-bg/wind...
3. Run Docker Desktop go to "Settings" and switch between Hyper-V and WSL 2 with the help of the checkbox

References:
Windows Subsystem for Linux Installation Guide for Windows 10: https://docs.microsoft.com/en-us/wind...

Updating the WSL 2 Linux kernel: https://docs.microsoft.com/bg-bg/wind...

What is the Windows Subsystem for Linux?: https://docs.microsoft.com/bg-bg/wind...


Watch video WSL 2 Installation on Win 10 (2004). Switching Docker from using Hyper-V to WSL 2 and back. online without registration, duration hours minute second in high quality. This video was added by user Stoyan Cheresharov 07 September 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 11,83 once and liked it 3 people.