How we set our development environment with WSL2 and docker

Photo by Saad Salim on Unsplash

Configure WSL2

Of course, you first need to have a Windows OS running on your machine and it has to be on the 2004 version or higher to be able to use WSL2. To check if your machine is meeting the requirements simply press start and enter winver :

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

Install a Linux distribution

Now you need to install a Linux distribution of your choice. Open the Microsoft Store and select your favorite Linux distribution. We use Ubuntu but feel free to pick your distribution.

wsl --list --verbose

Install Docker

Before we walk you through the installation of docker. Let’s first briefly understand docker and why we use it.

> docker -v




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aicha Fatrah

Aicha Fatrah

Software Engineer | Technical Writer | IT Enthusiast