install wsl using this powershell script after installing docker code example
Example 1: install wsl using this powershell script
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Example 2: install wsl using this powershell script
Open Settings.
Click on Apps.
Under the "Related settings" section, click the Programs and Features option.
Click the Turn Windows features on or off option from the left pane.
Check the Windows Subsystem for Linux option.
Click the OK button.
Click the Restart now button.