It is possible to install Docker CE directly on Windows Server 2019, which gives first party support to running Docker containers on a Windows host. It's very easy to do and is done using Install-Package.
Install-Module DockerMsftProvider -Force
|
Install-Package Docker -ProviderName DockerMsftProvider -Force
|
You will get a daemon connection error if you do not restart the host after the installation.
Restart-Computer
This will run a first party container using the Nano Server image, which will be pulled from Docker Hub.
docker run hello-world:nanoserver
|