In this blog post, I will show you how to run Windows Server 2016 Containers on Windows Server 2019 Container host.
With the release of Windows Server 2019 Windows
If you try to run a Windows Server 2016 Container it will fail because the host OS is not the same as the Container OS.
To fix the issue and run Windows Server 2016 Containers on my Host, I will use Hyper-V Isolation mode on my host.
In the example below, I will use the –isolation to run a Windows Server 2016 Core container
docker run -it --isolation=hyperv microsoft/windowsservercore cmd
If I run get-computerinfo from the Container you will see that the OS version is 2016
If I run the same cmdlet on my host you will see that it is running Windows Server 2019