Windows Server 2019 does not support Docker Desktop.
Here’s a detailed explanation:
❌ Docker Desktop on Windows Server 2019?
- No, Docker Desktop is not supported on Windows Server 2019.
- Docker Desktop is officially supported only on Windows 10 and Windows 11 Pro or Enterprise editions (with WSL2 or Hyper-V).
- Windows Server is a different product and is not a supported host OS for Docker Desktop.
✅ Alternatives: Run Docker on Windows Server 2019
You can still run Docker Engine (the core Docker technology) on Windows Server 2019 using Windows-native containers.
✔️ Option 1: Install Docker Engine directly (via PowerShell)
Use Microsoft’s pre-approved method to install Docker via the Microsoft PowerShell module:
# Install the OneGet PowerShell module (if not already installed)
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
# Install Docker
Install-Package -Name docker -ProviderName DockerMsftProvider
# Restart the computer
Restart-Computer -Force
After installation:
# Start Docker service
Start-Service docker
# Test installation
docker --version
docker run hello-world:nanoserver
Note: You’ll be using Windows containers, not Linux containers (unless you have specific setup with LCOW — Linux Containers on Windows, which is experimental and not recommended for production).
⚠️ Limitations
- No Docker Desktop GUI.
- No WSL2 integration.
- No easy Kubernetes (via Docker Desktop) — though you can use Kubernetes with Rancher, kubeadm, or AKS-HCI.
- Container images must be Windows-based (e.g.,
mcr.microsoft.com/windows/servercore,nanoserver).
? Want Linux Containers?
If you need Linux containers, consider:
- Run Linux VMs on Hyper-V and install Docker there.
- Use Azure Container Instances (ACI) or AKS for Linux workloads.
- Use Windows Subsystem for Linux (WSL2) — but this is not available on Windows Server 2019 by default and not supported.
✅ Recommended for Production
For production environments on Windows Server:
- Use Docker Engine via the method above.
- Or better yet, use container orchestration platforms like:
- Kubernetes (via Rancher, AKS-HCI, or OpenShift)
- Amazon ECS on Windows
- Microsoft Container Apps (serverless)
Summary
| Feature | Supported on Win Server 2019? |
|---|---|
| Docker Desktop | ❌ No |
| Docker Engine (CLI) | ✅ Yes |
| Windows Containers | ✅ Yes |
| Linux Containers (LCOW) | ⚠️ Experimental / Limited |
| WSL2 Integration | ❌ No |
| GUI Management (Docker App) | ❌ No |
Official References
- Docker Engine on Windows Server
- Microsoft Docker Provider
- Docker Desktop Install Requirements
If you’re looking for a development experience similar to Docker Desktop, consider using Windows 11 Pro instead for full Docker Desktop + WSL2 support.
Let me know if you want help setting up Docker Engine or containers on Windows Server 2019!
CDNK博客