Yeah it is possible and the hipsters here won’t tell you how to do it. There is no documentation for this anywhere because they won’t simply remove the error message for the beta installer on server 2016. They probably just don’t want to give it away for Friis and it will be a paid product. Just so you know, running an application container will simply create a Linux VM (MobyLinux) and essentially run the container under it so it is pretty inefficient for large programs. Anyways, here is how you do it:
Download the Docker beta installer: https://docs.docker.com/docker-for-windows/
Install Docker beta on a Windows 10 Pro + machine or VM. If you don’t have one, just download the Enterprise trial iso from the Microsoft eval center.
copy C:\program files\Docker from the Windows 10 machine to C:\program files on your Server 2016 box
on the server 2016 box, run install-windowsfeature hyper-v,containers
copy these registry entries to a file and import them on your Server 2016 box (reg import):
Windows Registry Editor Version 5.00
“AppPath”="“C:\Program Files\Docker\Docker\Docker for Windows.exe”"
"DisplayName"=“Docker for Windows Service”
“Description”=“Run Docker for Windows backend service”
you can add an entry to currentversion\run or a scheduled job if you want docker for windows.exe to start up automatically
restart the computer and run the ps1 script C:\program files\docker\docker\resources\mobylinuxvm.ps1 -create
look into this ps1 file and notice that you can set various options. Please refer to these websites:
Make sure the docker service com.docker.service (start-service com.docker.service) is running before you start c:\program files\docker\docker for windows.exe
if you are running on server core and don’t have the tray icon, click “change privacy settings” when the notification comes up after it starts to get to settings (or modify the json in programdata)
If you run into issues when trying things and rebuilding, check out the C:\program files\docker\docker\resources\forceremovedocker.ps1 file for locations to delete settings such as in c:\programdata. I would advise against running the script as it deletes all docker related things. Just use pieces of it.