How to run Linux Docker Container on Windows Server 2019?

One could use Docker for CE ie the same installer that works on WIN 10. But remember to use the version 2.1.0.3 instead of the version 2.0.0.3. The previous versions have some issues with Server 2019 and would not work fine.

The only supported way to run linux container on Docker EE is using the Hyper-V isolation method (LCOW) which in itself cumbersome and also there is no official documentation. One could follow the blogs mentioned below to run Linux Container on Windows Server 2019 (Remember the support is experimental and is not recommended for Production environment).

  • https://computingforgeeks.com/how-to-run-docker-containers-on-windows-server-2019/
  • https://www.altaro.com/msp-dojo/linux-containers-windows-server-2019/

PS:

Windows/Docker are not coming up with a final strategy on how they would support Linux container. The Hyper-V isolation method to run Linux container was an idea proposed long back but still there is no final call on that. Refer to the link

We can use Docker for windows on server 2016 but soon the support for latest Docker version 2.1 will not be available. There has been no concrete documentation from Docker/Windows community about how they would support Linux container. Following the steps mentioned here will just provide Windows container support on Server 2016. Luckily we have a escape with server 2016 and Server 2019 using Docker for Windows Installer (Docker CE) but still its not a full proof solution.