WSL 2 is only available in Windows 10 builds 18917 or higher


The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a virtual machine.

How to install WSL 2 on Windows 10 20H1

WSL 2 is not enabled by default. please follow the below steps

  1. Open PowerShell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

2. Restart your computer when prompted.

Install your Linux Distribution of Choice.

Open the Microsoft Store and choose your favorite Linux distribution.

The following links will open the Microsoft store page for each distribution:

  1. From the distro's page, select "Get"

Complete initialisation of your distro

Now that your Linux distro is installed.

Initializing a newly installed distro

To complete the initialization of your newly installed distro, launch a new instance. You can do this by clicking the "launch" button in the Microsoft Store app, or launching the distro from the Start menu:

Setting up a new Linux user account

Once installation is complete, you will be prompted to create a new user account (and its password).

This user account is for the normal non-admin user that you'll be logged-in as by default when launching a distro.

Update & upgrade your distro's packages

Most distros ship with an empty/minimal package catalog. We strongly recommend regularly updating your package catalog, and upgrading your installed packages using your distro's preferred package manager. On Debian/Ubuntu, you use apt:

sudo apt update && sudo apt upgrade

Windows does not automatically update or upgrade your Linux distro(s): This is a task that the Linux users prefer to control themselves.

You can choose any username and password you wish - they have no bearing on your Windows username.

Docker Tech Preview introduces support to run Docker Desktop with WSL 2.

For more information, please visit the below links.