WSL 2 installation is incomplete.
If you're getting the above error message while installing Docker on Windows, please follow the instructions below:
Press Windows logo key
, type cmd
, select Run as administrator
to open a new terminal window.
Run the following command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Run the following command:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart your machine.
Press Windows logo key
, type cmd
, select Run as administrator
to open a new terminal window.
Run the following command:
wsl --set-default-version 2
wsl --install