

If you're using Windows Terminal (you should be!) you can configure it to open your WSL distribution. The first time you launch the distribution, the distribution will extract and install, and you'll need to set a username and password.
#DOCKER DESKTOP LOGS INSTALL#
You can install a distribution directly from the Microsoft Store. We actually don't need to install a Linux distribution to use Docker Desktop, but if you want to shell into Linux directly, you'll need to install one. This is an easy step, just run wsl -set-default-version 2 in any PowerShell window: >wsl - set -default -version 2įor information on key differences with WSL 2 please visit https: / /aka. The installer runs very quickly, and hopefully you'll see a confirmation screen, something like the following: Note, if you see the following error when running the update, make sure you've restarted your machine afer installing the WSL 1 and VM features: Install the WSL 2 updateĭownload the WSL2 Linux kernel update package for 圆4 machines and install it. Time to restart your machine to ensure everything is registered correctly.
#DOCKER DESKTOP LOGS .EXE#
exe /online /enable -feature /featurename:VirtualMachinePlatform /all /norestart

You should see something like the following: > dism. In the same, elevated command prompt, run: dism. WSL 2 uses a lightweight VM, so you need to enable the Virtual Machine feature available in Windows 10 version 1903 and higher. That enables WSL, but we're going to enable the newer WSL 2 version, which Docker Desktop can use to run the VM it needs to run containers. exe /online /enable -feature /featurename:Microsoft -Windows -Subsystem -Linux /all /norestartĭeployment Image Servicing and Management toolĮnabling feature (s ) exe /online /enable -feature /featurename:Microsoft -Windows -Subsystem -Linux /all /norestart Open PowerShell as Administrator (I hit the Start key, type powershell and hit ctrl+shift+enter to open an elevated command prompt). We'll start by installing WSL 1 by enabling the WSL feature.

On Windows Pro, you can also use Hyper-V, but that is deprecated now, so WSL 2 is the way to go in all cases. If you're running Windows Home, WSL 2 is the only way to run Docker Desktop. We'll install it as a prerequisite for Docker Desktop for Windows. WSL 2 also provides a mechanism for running Docker (with Linux containers) on your Windows machine.

The Windows Subsystem for Linux (WSL) is a way to run a full Linux environment on your Windows machine, without having to install a "heavier" virtual machine, such as Virtual Box, VM Ware, or Hyper-V. Finally, I show the the experience of running a container and how it looks in Docker Desktop.
#DOCKER DESKTOP LOGS HOW TO#
I'll start by describing how to install WSL 2 based on the install documents, then show how to install Docker Desktop. Previously I've always worked with Linux in a Virtual Machine using something like VMWare or Virtual Box, but I decided to give Docker Desktop a try, and was pleasantly surprised by the experience! In this post, I describe how to install WSL 2 to serve as the backend for Docker Desktop for Windows.
