Skip to content

Instantly share code, notes, and snippets.

@hisplan
Last active March 10, 2023 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hisplan/772e4e1a98b768bda124709961edd19e to your computer and use it in GitHub Desktop.
Save hisplan/772e4e1a98b768bda124709961edd19e to your computer and use it in GitHub Desktop.
WSL 2 installation is incomplete.

Troubleshooting

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.

Step 1: Enable the Windows Subsystem for Linux (WSL) feature

Run the following command:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Step 2: Enable the Virtual Machine feature

Run the following command:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Step 3

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment