The other day, I abandoned the installation of wsl2, but now (September 12, 2020) it is possible, so it is a memo.
I noticed that version 1903 also now supports WSL2, and I should have enabled'Virtual Machine Platform' and set the default version of WSL to 2.
reference https://docs.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
Win + R → Command winver displays the following
If you are already running ubuntu on wsl, you need to change the version to wsl2 I ran the following on powershell
wsl --set-version Ubuntu 2
Check the version with the command wsl -l -v
https://docs.docker.jp/docker-for-windows/wsl.html
However, I couldn't change the WSL2 settings because it was decided at the time of installation, so I decided to re-install docker desktop here. ..
If I just uninstalled and reinstalled, the hyper-v version went up. ..
Apparently, windows 10 version 2004 is required, so set it up here https://www.microsoft.com/ja-jp/software-download/windows10
After version 2004, you can install the one that can use wsl2. Maybe I didn't need to uninstall it. ..
Recommended Posts