Linux机器与docker部署Windows容器 [英] Linux machine with docker deploy windows container

查看:437
本文介绍了Linux机器与docker部署Windows容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台带有16GB RAM的Linux服务器,并安装了docker主机。我想在其上部署一个Windows Server容器。可能吗?任何人刚刚尝试过这个解决方案?

解决方案

理论上(原始答案为2015年10月):



在Linux主机上没有运行Windows容器。

由于它依赖于对Linux内核的系统调用



您当然可以在任何Windows机器上运行这些Linux容器一个VM。

这就是 docker工具箱将安装



将有在Windows上很快支持docker,但这将是Windows容器,而不是Linux容器。






< h2>实际...(更新2016年12月)

请参见 Linux和Windows,生活在一起,总是混乱! (OK,Kubernetes 1.5)


Kubernetes 1.5包括对Windows Server Containers,共享内核的Alpha支持类似于Docker的模型和Hyper-V Containers,一个单核内核模式,为多租户环境提供更好的隔离(以更高的延迟为代价)

最终结果是创建单个Kubernetes集群的能力不仅包括运行Linux容器的Linux节点或运行Windows容器的Windows节点,而且还可以并排运行,以实现真正的混合体验。

例如,单个服务可以使用Windows Server Containers和其他POD使用Linux容器


但是:


虽然它看起来功能齐全,但在这个早期版本中似乎有一些限制,包括:




  • Kubernetes主人还必须在Linux上运行依赖于它的写作方式。有可能移植到Windows,但是目前,团队认为最好将重点放在客户端组件上。

  • 对于容器的网络覆盖没有本机支持窗口,因此网络限于L3 。 (还有其他的解决方案,但是它们不是本地可用的。)

    Kubernetes Windows SIG正在与微软合作解决这些问题,但是他们希望Kubernetes 1.6的发布可以取得进展

  • Windows容器之间的联网更加复杂,因为每个容器都有自己的网络命名空间,所以建议您现在使用单容器pod。 。

  • 在Windows Server Containers中运行的应用程序可以运行Windows支持的任何语言。您可以在Linux容器中运行.NET应用程序,但只能在.NET Core中编写。 Nano Server操作系统还支持.NET内核,可以部署在Windows Server Containers上。



I have a Linux server with 16GB ram with docker host installed. I would like to deploy on it a Windows Server container. Is it possible? Anyone has just tried this solution?

解决方案

In theory (original answer Oct 2015):

There is no "Windows container" running on a Linux host.
And a Linux container would not run on a Windows server, since it relies on system calls to a Linux kernel.

You certainly can run those Linux containers on any Windows machine through a VM.
That is what docker toolbox will install.

There will be support for docker on Windows soon, but that would be for Windows container, not Linux containers.


Actually... (update Dec. 2016)

See "Linux and Windows, living together, total chaos! (OK, Kubernetes 1.5)"

Kubernetes 1.5 includes alpha support for both Windows Server Containers, a shared kernel model similar to Docker, and Hyper-V Containers, a single-kernel model that provides better isolation for multi-tenant environments (at the cost of greater latency).
The end result is the ability to create a single Kubernetes cluster that includes not just Linux nodes running Linux containers or Windows nodes running Windows containers, but both side by side, for a truly hybrid experience.
For example, a single service can have PODs using Windows Server Containers and other PODs using Linux containers.

But:

Though it appears fully functional, there do appear to be some limitations in this early release, including:

  • The Kubernetes master must still run on Linux due to dependencies in how it’s written. It’s possible to port to Windows, but for the moment the team feels it’s better to focus their efforts on the client components.
  • There is no native support for network overlays for containers in windows, so networking is limited to L3. (There are other solutions, but they’re not natively available.)
    The Kubernetes Windows SIG is working with Microsoft to solve these problems, however, and they hope to have made progress by Kubernetes 1.6’s release early next year.
  • Networking between Windows containers is more complicated because each container gets its own network namespace, so it’s recommended that you use single-container pods for now.
  • Applications running in Windows Server Containers can run in any language supported by Windows. You CAN run .NET applications in Linux containers, but only if they’re written in .NET Core. .NET core is also supported by the Nano Server operating system, which can be deployed on Windows Server Containers.

这篇关于Linux机器与docker部署Windows容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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