可以使用Docker的Windows .Net应用程序吗? [英] Can I use a Windows .Net app with Docker?
问题描述
TIA。
将来,Microsoft和Docker的宣布你将有一个Windows版本的Docker。
编辑:更新的信息
请注意,基础平台和操作系统必须匹配 - 即今天,您可以在x64 Linux上的ARM Linux和x64 Linux容器上运行ARM Linux容器,但不能混合和匹配。当添加Windows时,模式将是一样的 - 您将能够在Windows操作系统上运行Windows容器,但不能在Linux上运行。不需要额外的虚拟化层(如VirtualBox,VMWare等)。
编辑:尊重葡萄酒答案,我没有考虑过。它适合作为额外的虚拟化层,但在OS API级别而不是硬件级别。支持的.Net程序的范围有所限制。
同样,您可能可以使用 Mono 。
I'm a little confused by all the chat about Docker, and how it fits into the virtualisation world. So here's a straight question: can I package up a .Net application (that normally runs on Windows 7 etc) to run in a Docker container, and then execute it on 'any' host supporting Docker?
TIA.
Not today. In future, Microsoft and Docker have announced that you there will be a Windows version of Docker.
Edit: newer info
Note that the base platform and OS have to match - i.e. today you can run ARM Linux containers on ARM Linux and x64 Linux containers on x64 Linux, but you can't mix and match. When Windows is added, the pattern will be the same - you will be able to run Windows containers on Windows OS, but not on Linux. Not without an extra layer of virtualization (like VirtualBox, VMWare, etc).
Edit: respect to the Wine answer, which I hadn't considered. It sort-of fits as "an extra layer of virtualization", but at the OS API level not the hardware level. And somewhat restricted in scope of .Net programs supported.
In a similar vein, you might be able to run your .Net code in Docker using Mono.
这篇关于可以使用Docker的Windows .Net应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!