
For example, to update Ubuntu to WSL2, run: wsl -set-version Ubuntu-20.04 2 Install a Linux Distribution Note: Use the wsl -set-version syntax to downgrade from WSL2 to WSL1, or to update to WSL2 on previously installed Linux distributions. Press the Windows + R key combo to open the Run dialog box. Follow the steps below to check your Windows version.ġ.
The prerequisite for installing WSL2 is Windows 10 (version 1903, build 18362) or newer.
Are using VirtualBox - certain versions experience issues with WSL2. Need to control memory usage - WSL2 captures cached pages in memory until you shut down the WSL instance, which can use a lot of memory when working with large files. You must store project files in the Windows file system, as it offers faster access. In this tutorial, we will use WSL2 because it offers superior performance compared to WSL1 and full system compatibility. Installing Linux distributions on Windows requires the WSL (WSL1 or WSL2) feature. A machine running Windows 10 or 11 (For other systems, see how to Install Podman on Ubuntu, Install Podman on macOS). Note: If you are looking for an affordable and performant solution for running containers, take a look at our Bare Metal Cloud general-purpose instances, which are well suited for running containerized microservices.