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

Опубликовано: 07 Сентябрь 2020
на канале: 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...


Смотрите видео WSL 2 Installation on Win 10 (2004). Switching Docker from using Hyper-V to WSL 2 and back. онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Stoyan Cheresharov 07 Сентябрь 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 11,833 раз и оно понравилось 34 людям.