can we run a windows docker container on linux host? also can take a RDP to windows docker container hosted on linux from other windows machines in the same network?
You can run both Linux and Windows programs and executables in Docker containers. The Docker platform runs natively on Linux (on x86-64, ARM and many other CPU architectures) and on Windows (x86-64). Docker Inc. builds products that let you build and run containers on Linux, Windows and macOS.
First, open the container host you want to manage, and in the Tools pane, select the Containers extension. Then, select the Images tab inside the Container extension under Container Host. In the Pull Container Image settings, provide the image URL and the tag.
That’s right. Docker for Windows can run Linux or Windows containers, with support for Linux containers via a Hyper-V Moby Linux VM (as of Docker for Windows 17.10 this VM is based on LinuxKit).
Docker -> Settings –> Daemon With Docker for Windows started and Windows containers selected, you can now run either Windows or Linux Containers simultaneously. The new –platform=linux command line switch is used to pull or start Linux images on Windows. Now start the Linux container and a Windows Server Core container.
"windows docker": if that means docker for windows, running Windows container, then no. You could run windows container on Linux the same way you are running Linux Container on windows: through a Virtual Machine emulating the target host. A docker-compose that handles both qemu and preinstalled isos might be possible.
In same rare cases, you can migrate your code to .NET Core, but still run on Windows Nano server, with an image size of 95 MB. If you are using Docker-for-Windows, you can run now both windows and Linux containers simultaneously: Running Docker Windows and Linux Containers Simultaneously
Today, it is clearly possible.
I recently succeeded in containerizing Windows Guest using QEMU and Docker.
https://github.com/gnh1201/docker-qemu/wiki/Windows-Guest
"windows docker": if that means docker for windows, running Windows container, then no.
You could run windows container on Linux the same way you are running Linux Container on windows: through a Virtual Machine emulating the target host.
Update Dec. 2016: Kubernetes 1.5 might offer a solution: see "Linux machine with docker deploy windows container"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With