【问题标题】:What are use cases for using Windows Containers instead of Linux containers on Windows?在 Windows 上使用 Windows 容器而不是 Linux 容器的用例有哪些?
【发布时间】:2019-02-14 10:26:26
【问题描述】:

Here 我读到 Windows 容器与 linux 容器相比在 docker 方面存在局限性:

  • Docker 仅支持特定版本的 Windows(即 Windows Server 2016 和 Windows 10)。相比之下,Docker 可以在任何类型上运行 基于 Linux 的现代操作系统。
  • 即使在 Docker 支持的 Windows 版本上,Windows 对映像兼容性也有更严格的要求
  • 容器的一些 Docker 网络功能还没有 在 Windows 上受支持。
  • Linux 上用于 Docker 的大多数容器编排系统在 Windows 上不受支持。 Docker Swarm 除外, 支持。 (如果您想在 然而,Windows 并不担心。 Windows 对协调器的支持,例如 Kubernetes 和 Apache Mesos 正在开发中。)

那么问题是,如果可以通过虚拟化在 Linux 容器上运行 docker,为什么还要在 Windows 容器上运行 docker?

【问题讨论】:

  • 因为他们要运行的软件需要windows?

标签: docker


【解决方案1】:

每个应用程序的首要设计选择之一是选择操作系统,即 Linux 或 Windows。 a question on SO 描述了选择 Windows 而不是 Linux 的优势。

容器化是一种部署应用程序的方法。在 Linux 中使用容器的可能性是 Linux 操作系统的另一个优势。如果您选择 Windows 作为应用程序的平台并希望使用容器,那么 Windows 容器是您的选择。

请阅读非常有趣的文章,了解 Windows 容器的工作原理以及为您的 Windows 应用程序使用容器的好处:https://xebia.com/blog/windows-containers-care/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-01
    • 1970-01-01
    • 2019-01-20
    • 1970-01-01
    • 2017-02-01
    • 2020-02-06
    • 2017-04-21
    • 1970-01-01
    相关资源
    最近更新 更多