【问题标题】:Linux Containers on Windows (LCOW) feature vs Running Linux VM on WindowsWindows 上的 Linux 容器 (LCOW) 功能与在 Windows 上运行 Linux VM
【发布时间】:2018-10-24 12:00:10
【问题描述】:

我试图理解为什么实际需要 LCOW 功能。

我可以在我的 Windows 上运行 Hyper-V Linux VM,并在其中运行带有 Linux 容器的 Docker(正确吗?)

我调查了Linux Containers documentation,它看起来充其量只是不那么成熟(例如“Known Issues”)

那么,与仅运行带有 Docker 的 Linux VM 相比,LCOW 提供了哪些好处?

【问题讨论】:

    标签: linux windows docker


    【解决方案1】:

    真正需要 LCOW 的唯一原因是,如果您想同时运行 Windows 和 Linux 容器。

    1. 使用 Linux VM,您只能运行 Linux 容器。
    2. 如果您希望运行 Windows 容器,您还必须在 Windows 上安装 Docker Deamon。
    3. 使用 LCOW,将有只有一个 Docker 守护程序(Docker 主机)在 Windows 上运行,同时管理 Windows 和 Linux 容器。

    要详细了解,Stackoverflow上有一个类似的线程。 What's the difference between Docker for Windows and Docker on Windows?

    如果您不想运行 Windows 容器,那么您真的不需要 LCOW。

    LCOW 已弃用,取而代之的是 WSL(适用于 Linux 的 Windows 子系统)。最新版本是 WSL2,Docker for Windows Desktop 已经支持它。

    https://docs.microsoft.com/en-us/windows/wsl/about

    【讨论】:

      猜你喜欢
      • 2017-02-01
      • 1970-01-01
      • 2021-08-24
      • 1970-01-01
      • 1970-01-01
      • 2020-02-06
      • 2020-07-05
      • 1970-01-01
      • 2014-01-23
      相关资源
      最近更新 更多