1. Knowledge Base
  2. FAQs and Tutorials

Configure WSL 2 for Docker Desktop on Windows 10/11

This guide will walk you through configuring WSL 2 (Windows Subsystem for Linux) to deploy the Actifile Cloud & NAS Agent using Docker Desktop.

Step 1. Press Win + R and type optionalfeatures to open the Windows Optional Features settings.

 

Step 2. Ensure the following options are enabled:

  • Hyper-V
  • Virtual Machine Platform
  • Windows Hypervisor Platform
  • Windows Subsystem for Linux

Click OK and restart your computer if you have made any changes.

 

Step 3. Open PowerShell as Administrator (right-click and select Run as administrator). Execute the following command:

wsl --install

This will:

  • Set WSL 2 as the default version.
  • Install Ubuntu as the default Linux distribution.
  • Install the latest WSL kernel.

 

Step 4. Confirm WSL is installed by running the following:

wsl --list --verbose

The output should look similar to this:

If the output still shows Version 1, upgrade to WSL 2 using this command:

wsl --set-default-version 2

 

Step 5. Download and install Docker Desktop for Windows. During installation, ensure the box Using WSL 2 instead of Hyper-V is checked.

 

You are ready to deploy the Actifile Cloud & NAS Agent using Docker: