Software & OS

Docker Desktop for Windows: Install and Set Up (WSL 2)

To install Docker Desktop for Windows, download Docker Desktop Installer.exe from Docker's site, run it with the WSL 2 option selected, then start Docker Desktop from the Start menu and accept the license terms. It needs a 64-bit Windows 10 22H2 or Windows 11 23H2 (or newer) system with 8 GB of RAM and hardware virtualization turned on in the BIOS or UEFI.

This guide follows Docker's installation documentation as it stood in November 2026. Version numbers change, so check the requirements on Docker's page if your system is borderline.

System requirements for Docker Desktop on Windows

These are the requirements for the default WSL 2 backend on x86_64 machines:

  • Windows 10 64-bit, Enterprise, Pro or Education, version 22H2 (build 19045).
  • Windows 11 64-bit, Enterprise, Pro or Education, version 23H2 (build 22631) or higher.
  • WSL version 2.1.5 or later. Docker recommends 2.6 or later if you want Enhanced Container Isolation.
  • A 64-bit processor with Second Level Address Translation (SLAT), 8 GB of RAM, and hardware virtualization enabled in the BIOS/UEFI.
  • The Windows Server service (LanmanServer) enabled and set to start Automatic.
  • The WSL 2 Windows feature turned on.

Docker Desktop is not supported on Windows Server editions. To check your Windows build, press Win+R, type winver and read the version and OS build.

Step 1: Install or update WSL 2

WSL 2 is the default backend and the one that works without administrator privileges for the Docker install itself. If WSL is not installed at all, open PowerShell as administrator and run:

wsl --install

Microsoft's documentation says this enables the features WSL needs and installs Ubuntu by default. Restart the machine afterwards. To confirm WSL is present and see which version each distribution uses, run:

wsl -l -v

Docker Desktop requires WSL 2.1.5 or later, so check the version against that if you installed WSL a long time ago.

Step 2: Choose an installation mode

The installer offers two modes. You cannot switch between them without uninstalling and reinstalling.

Per-user (default, recommended)All users
Install location%LOCALAPPDATA%\Programs\DockerDesktopC:\Program Files\Docker\Docker
Administrator rights to install and updateNoYes
Backends offeredWSL 2, Docker VMM (Beta)WSL 2, Hyper-V
Windows containersNot supportedSupported (Windows 10/11 Pro or Enterprise)

For running Linux containers, which is what most tutorials assume, the per-user install with WSL 2 is enough.

Step 3: Run the installer

  1. Download the installer from Docker's download page.
  2. Double-click Docker Desktop Installer.exe and choose an installation mode.
  3. On the Configuration page, select Use WSL 2 instead of Hyper-V. Leave it unselected only if you want the Hyper-V backend.
  4. Follow the wizard and select Close when it reports success.

Install Docker Desktop from the command line

From the folder that holds the installer, in PowerShell:

# Per-user installation (no admin required)
Start-Process 'Docker Desktop Installer.exe' -Wait -ArgumentList 'install', '--user'

# All-users installation (run PowerShell as administrator)
Start-Process 'Docker Desktop Installer.exe' -Wait install

In Command Prompt, use start /w "" "Docker Desktop Installer.exe" install --user (or without --user for all users). Useful flags from Docker's documentation:

  • --user: per-user installation.
  • --quiet: suppress installer output.
  • --accept-license: accept the Docker Subscription Service Agreement during installation instead of at first run.
  • --installation-dir=<path>: change the install location from the default C:\Program Files\Docker\Docker.
  • --backend=<name>: set the default backend to wsl-2 (the default), hyper-v, windows or docker-vmm. hyper-v and windows cannot be combined with --user.
  • --always-run-service: start com.docker.service and set it to Automatic. Windows containers and the Hyper-V backend need this.

Step 4: Start Docker Desktop and check it works

Docker Desktop does not start by itself after installation. Search for "Docker" in the Start menu and select Docker Desktop. It asks you to accept the Docker Subscription Service Agreement; it will not run until you accept, though you can accept later. Wait until the Docker Desktop window shows the engine as running, then open a terminal and run:

docker --version
docker run hello-world

The first command prints the client version. The second downloads a small test image and runs it in a container, which prints a message and exits. If both work, the engine is running. For what to run next, see the Docker commands cheat sheet, and for the concepts behind it, what Docker containers are.

To check the WSL side directly, Docker's troubleshooting page suggests:

wsl -l -v
wsl -d docker-desktop echo WSL 2 is working

The docker-users group

For Linux containers on the WSL 2 backend, you do not need this group. In an all-users install where the administrator account differs from your own, add your user to docker-users so you can use features that need elevated access, such as Hyper-V VM management or Windows containers:

net localgroup docker-users <user> /add

Run it as administrator and replace <user> with the account name. Docker warns that membership grants access to the Docker daemon socket, which is equivalent to administrative privileges on the host, so add only people who need it.

Fix: Docker Desktop will not start

"Unexpected WSL error" with HCS_E_HYPERV_NOT_INSTALLED or ERROR_NOT_SUPPORTED

Docker's troubleshooting page lists these codes, for example Wsl/Service/RegisterDistro/CreateVm/HCS/HCS_E_HYPERV_NOT_INSTALLED. Running wsl commands by hand fails with the same code. Causes and fixes from that page:

  • Virtualization is off in the BIOS/UEFI. Turn it on. Task Manager's Performance tab shows whether it is enabled.
  • Virtual Machine Platform and Windows Subsystem for Linux are not turned on in Windows features. Turn them on.
  • The hypervisor is not launching at boot. In an administrator prompt run bcdedit /set hypervisorlaunchtype auto, then restart Windows.
  • Some third-party software, such as Android emulators, can disable Hyper-V when installed.
  • Avast's hardware-assisted virtualization can block it. In Docker Desktop go to Settings > Troubleshooting and clear Enable hardware-assisted virtualization if you see ERROR_NOT_SUPPORTED.

If systeminfo output includes "A hypervisor has been detected. Features required for Hyper-V will not be displayed", virtualization is on. Inside a virtual machine or VDI, enable nested virtualization; the error there reads "The Virtual Machine Management Service failed to start the virtual machine 'DockerDesktopVM'".

"Docker Desktop - Access Denied"

Your user is not in the docker-users group. As an administrator, open Computer Management, go to Local Users and Groups > Groups > docker-users, add your user, then sign out and back in.

WSL 2 or Hyper-V: which backend?

Use WSL 2 unless you specifically need Windows containers or Hyper-V VM management. Docker describes WSL 2 as the default and the one that works for most people without administrator privileges. The Hyper-V backend is only available in the all-users install and needs the Hyper-V and Containers Windows features turned on. If you are weighing containers against full virtual machines first, read Docker vs virtual machine. Once containers run, Docker port mapping explains how to reach them from your browser.

Licensing in one paragraph

Docker's page states that Docker Desktop is free for small businesses (fewer than 250 employees and less than $10 million in annual revenue), personal use, education and non-commercial open source projects. Larger enterprises need a paid subscription for commercial use, as do government entities. This is the vendor's policy as of November 2026 and it can change, so read Docker's current terms for your situation.

Frequently asked questions

Is Docker Desktop for Windows free?
Docker Desktop is free for personal use, education, non-commercial open source projects, and small businesses with fewer than 250 employees and less than $10 million in annual revenue. Larger companies need a paid subscription for commercial use, and government entities also need one. This is Docker's stated policy as of November 2026; check the current terms before relying on it.
Does Docker Desktop work on Windows 10 or Windows 11 Home?
Windows 10 22H2 (build 19045) and Windows 11 23H2 (build 22631) or higher are supported, in the Enterprise, Pro and Education editions listed in Docker's requirements. Docker's page does not list Home among the supported editions in that requirements list, so check Docker's current page for Home. It also says Windows containers need Pro or Enterprise.
Do I need administrator rights to install Docker Desktop?
Not for the default per-user install, which uses the WSL 2 backend and installs to your user profile. The all-users install, which is required for the Hyper-V backend and Windows containers, needs administrator rights to install and to update.
Can I switch between per-user and all-users installation later?
Not in place. Docker's documentation says you must uninstall Docker Desktop and install it again to change the installation mode.

Sources