可以使用Docker的Windows .Net应用程序吗? [英] Can I use a Windows .Net app with Docker?

查看:181
本文介绍了可以使用Docker的Windows .Net应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Docker的所有聊天有一点困惑,以及它如何适应虚拟化世界。所以这里有一个直截了当的问题:我可以打包一个.Net应用程序(通常在Windows 7等上运行)在Docker容器中运行,然后在支持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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆