upgrade from wsl 1 to 2 windows 10 Enable WSL 2 on windows 10 Run these from github code example
Example: update to wsl2 windows 10
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart