wsl --set-version <Distro> 2
# For setting all future distributions to use WSL 2
wsl --set-default-version 2
wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
wsl --set-version <Distro> 2
wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
wsl --set-version <distro_name> <version>
wsl --set-version Ubuntu-18.04 2
wsl --set-version Ubuntu-20.04 2
# turn off all wsl instances such as docker-desktop
wsl --shutdown
notepad "$env:USERPROFILE/.wslconfig"
# .wslconfig
[wsl2]
memory=3GB # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors