Deploy Docker Desktop via Intune | Win32 Packaging
Docker Desktop is the standard development environment for containerised applications, widely deployed to developer workstations. Deployment via Intune requires enabling WSL 2 as a prerequisite, then deploying Docker Desktop with the --accept-license flag. This guide covers the full deployment including the WSL 2 prerequisite and handling the required reboot.
Prerequisites - WSL 2 and Hyper-V
Docker Desktop requires either WSL 2 (recommended) or Hyper-V as the container backend. Enable WSL 2 before deploying Docker Desktop using a PowerShell script deployed via Intune:
# Enable WSL 2 prerequisites - deploy BEFORE Docker Desktop # Run as a device configuration script in Intune # Enable Windows Subsystem for Linux dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart # Enable Virtual Machine Platform (required for WSL 2) dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart # Set WSL 2 as default version (run after reboot) # wsl --set-default-version 2
Download the installer
Download Docker Desktop for Windows from the official Docker site:
https://docs.docker.com/desktop/install/windows-install/
Download the Docker Desktop Installer.exe for Windows. Docker does not provide an MSI.
Wrap with the Content Prep Tool
IntuneWinAppUtil.exe -c "C:\AppSource\Docker" -s "Docker Desktop Installer.exe" -o "C:\IntunePackages"
Add the app in Intune
- Upload the .intunewin file
- Name: Docker Desktop
- Publisher: Docker Inc.
- Add the WSL 2 enablement script as a Dependency in the app requirements
Install and uninstall commands
Detection rule
Known gotchas
Docker Desktop licence requirement
Docker Desktop requires a paid subscription for organisations with more than 250 employees or more than $10M in annual revenue. Ensure your organisation has the correct Docker subscription before deploying at scale.
WSL 2 kernel update
On older Windows 10 builds, the WSL 2 Linux kernel may need a manual update package installed. Deploy the WSL 2 kernel update MSI from Microsoft before Docker Desktop if targeting older Windows 10 devices.
Frequently Asked Questions
Use: Docker Desktop Installer.exe install --quiet --accept-license. Docker Desktop uses its own installer format with specific switches. The --accept-license flag is required for silent deployment.
Docker Desktop on Windows requires Hyper-V or WSL 2. WSL 2 is the recommended backend. Enable WSL 2 and the Virtual Machine Platform Windows feature before deploying Docker Desktop - deploy these via Intune as a pre-requisite.
Use a file detection rule: check for Docker Desktop.exe in C:\Program Files\Docker\Docker. Alternatively check the registry under HKLM\SOFTWARE\Docker Inc.\Docker Desktop.
Yes. Docker Desktop typically requires a reboot after installation to complete the WSL 2 integration and kernel component setup. Plan for a reboot in your deployment window.