Summary:
Section titled “Summary:”Docker Desktop can use the Windows Subsystem for Linux version 2 (WSL 2) as its backend, providing improved performance and a seamless Linux container experience on Windows. This article explains what WSL 2 is, benefits for Docker users, installation prerequisites, and troubleshooting tips.
Who is this KB written for?:
Section titled “Who is this KB written for?:”Service Desk
When should this KB be referenced?:
Section titled “When should this KB be referenced?:”To meet prerequisites for running Phanes
Installation Steps
Section titled “Installation Steps”Prerequisites
Section titled “Prerequisites”- Docker for Windows is already installed
- Enable WSL 2:
-
Open PowerShell as Administrator.
-
Run:
bashCopy code`dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart` -
Restart your computer.
- Install a Linux Distribution:
-
Open Microsoft Store.
-
Search for and install a Linux distribution (e.g., Ubuntu).
- Set WSL 2 as default version:
-
Open PowerShell and run:
cRun CodeCopy code`wsl --set-default-version 2`
- Configure Docker Desktop to use WSL 2:
-
Open Docker Desktop.
-
Go to Settings > General and ensure “Use the WSL 2 based engine” is checked.
-
In Settings > Resources > WSL Integration, enable integration with your Linux distribution (e.g., Ubuntu).