windows server 2019 docker desktop?

Windows Server 2019 does not officially support Docker Desktop.

Here’s a detailed explanation:


❌ Does Docker Desktop run on Windows Server 2019?

No, Docker Desktop is not supported on Windows Server 2019.

  • Docker Desktop is designed for development and testing environments and is officially supported only on:
    • Windows 10 (Pro, Enterprise, or Education)
    • Windows 11
    • Windows 10/11 WSL 2 backend
    • As of recent versions, also supports Windows Server 2022 in some configurations (but with limitations).

⚠️ Microsoft and Docker do not list Windows Server 2019 as a supported platform for Docker Desktop.


✅ What can you use instead?

On Windows Server 2019, you should use Docker Engine (via the Docker Microsoft Linux Container package) or containerd with Kubernetes, but typically using Windows native containers or via Linux VMs.

Option 1: Install Docker Engine directly (Moby/Docker EE for Windows)

You can install the Docker Engine as a Windows Service using PowerShell.

# Install the Docker-Microsoft PackageManagement Provider
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
docker --version
docker run hello-world:nanoserver

This installs the Docker Engine natively on Windows Server 2019, allowing you to run Windows containers.


Option 2: Use Containerd + Kubernetes (e.g., AKS on Azure Stack or Rancher)

For production environments, many organizations use containerd instead of Docker Engine, especially when integrating with Kubernetes (K8s).


Option 3: Run Linux Containers via WSL2 or VM (not recommended on Server 2019)

  • WSL2 is not available on Windows Server 2019, so you cannot use WSL2-based Docker (like Docker Desktop uses).
  • You could run a Linux VM with Docker, but that’s less efficient.

Summary

Feature Supported on Win Server 2019?
Docker Desktop ❌ No
Docker Engine (native) ✅ Yes (via DockerMsftProvider)
Windows Containers ✅ Yes
Linux Containers (via WSL2) ❌ No (WSL2 not available)
Kubernetes integration ✅ Possible with kubeadm/rancher

Recommendation

If you’re running Windows Server 2019, use the native Docker Engine via DockerMsftProvider for Windows containers.

If you need Docker Desktop features (GUI, easy image management, Dev Environments, etc.), consider upgrading to:

  • Windows 10/11 Pro (for development), or
  • Windows Server 2022 (with limited support for newer Docker Desktop versions in specific cases — still not fully official)

References

  • Docker Installation on Windows Server
  • Docker Desktop system requirements
  • Microsoft Container Documentation

Let me know if you want help installing Docker Engine on your Windows Server 2019!

未经允许不得转载:CLOUD技术博 » windows server 2019 docker desktop?