Install Docker on Windows
This chapter covers how to install and configure Docker on Windows.
System Requirements
Docker Desktop Requirements
- Windows 10 64-bit: Pro, Enterprise, or Education (Build 19041+)
- Windows 11 64-bit: Home, Pro, Enterprise, or Education
- WSL 2 or Hyper-V enabled
- At least 4GB RAM
- Hardware virtualization enabled in BIOS
Install WSL 2 (Recommended Backend)
Docker Desktop recommends WSL 2 for better performance:
1. Enable WSL
2. Manual Setup (if above command unavailable)
After restart:
Install Docker Desktop
1. Download
Visit Docker Desktop and download the Windows installer.
2. Run Installer
Double-click Docker Desktop Installer.exe and follow the wizard:
- Check "Use WSL 2 instead of Hyper-V" (recommended)
- Check "Add shortcut to desktop" (optional)
3. Launch Docker Desktop
Start Docker Desktop from the Start menu. Wait for initialization to complete on first launch.
4. Verify Installation
Docker Desktop Settings
Resource Configuration
In "Settings" → "Resources" → "WSL Integration":
- Enable integration with installed WSL distributions
- Adjust CPU and memory allocation (Hyper-V backend)
Docker Engine Configuration
In "Settings" → "Docker Engine", edit daemon.json:
Hyper-V Backend (Alternative)
Common Issues
WSL 2 Installation Fails
Hyper-V and VirtualBox Conflict
- Use WSL 2 backend instead of Hyper-V
- Or disable Hyper-V when not needed:
bcdedit /set hypervisorlaunchtype off
Docker Desktop Starts Slowly
- Ensure virtualization is enabled in BIOS (Intel VT-x / AMD-V)
- Increase Docker memory allocation
- Close unnecessary background programs
Windows Containers (Optional)
Docker Desktop supports switching between Windows and Linux containers:
- Right-click Docker icon in system tray
- Select "Switch to Windows containers" or "Switch to Linux containers"
💡 Use Linux containers for most cases. Windows containers are mainly for .NET Framework applications.