【问题标题】:Can Docker for Windows with Linux containers run on a VMware vSphere Windows 10 VM?带有 Linux 容器的 Docker for Windows 可以在 VMware vSphere Windows 10 虚拟机上运行吗?
【发布时间】:2018-04-04 12:29:31
【问题描述】:

所以我在 VMware vSphere 上有一个 Windows 10 虚拟机,我正在尝试在其上运行带有 Linux 容器的 Docker for Windows。 Hyper-V 已激活,如果使用 Windows 容器,Docker for Windows 可以正常启动。但是当我想切换到 Linux 容器时,启动失败并显示以下错误消息:

无法启动:Der ausgeführte Befehl wurde bedet, da die Einstellungsvariable "ErrorActionPreference" oder ein allgemeiner Parameter auf "Stop" festgelegt ist: Fehler beim Starten von "MobyLinuxVM"。

Fehler beim Starten des traitsllen Computers "MobyLinuxVM", da eine der Hyper-V-Komponenten nicht ausgeführt wrd。

Fehler beim Starten von "MobyLinuxVM"(ID des 德德伦计算机 47AE749A-D0A7-46A0-A45D-C32FB1B49022)。

德德德勒计算机 "MobyLinuxVM" konnte vom Verwaltungsdienst für meadowlle Computer nicht gestartet werden, da eine der Hyper-V-Komponenten nicht ausgeführt wird(ID 德德德莱恩计算机:47AE749A-D0A7-46A0-A45D-C32FB1B49022).. bei Start-MobyLinuxVM, : Zeile 300 贝,:泽勒395 bei Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:Zeile 36. 北 Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) 在 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:Zeile 67。 在 C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:Zeile 51 中的 Docker.Actions.c__DisplayClass14_0.b__0()。 bei Docker.WPF.TaskQueue.c__DisplayClass19_0.<.ctor>b__1() 在 C:\gopath\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:Zeile 59.

vSphere 有 4 个“CPU/MMU 虚拟化”选项(由我翻译):

  • 自动
  • 两者都使用软件虚拟化
  • 将 Intel VT-x/AMD-V 用于 CPU,将软件用于 MMU 虚拟化
  • 将 Intel VT-x/AMD-V 用于 CPU,将 Intel EPT/AMD RVI 用于 MMU 虚拟化

我已经尝试了全部 4 个的全新 Docker 安装,并在更改设置后重新启动,并且始终得到相同的结果。

有什么想法或建议吗?

【问题讨论】:

    标签: docker vmware virtualization vsphere docker-for-windows


    【解决方案1】:

    要托管 linux 容器,Docker for Windows 使用了一个名为“MobyLinuxVM”的 Hyper-V 虚拟机(类似于使用 Oracle VirtualBox 机器的旧 Docker Toolbox)。这是一个安装了 linux debian 的虚拟机。

    在您的 Windows 10VM 中检查 Hyper-V 管理器是否可以看到这台机器,并可能尝试使用一些标准 linux(例如 ubuntu)创建一个新的虚拟机,看看是否可以运行它。

    更新:

    如前所述,这是在虚拟机中运行任何虚拟机的问题,而不仅仅是 docker。 您也可以查看:https://blog.docker.com/2017/09/docker-windows-server-1709/

    Windows 上的 Docker Linux 容器处于预览阶段,由 Microsoft 和 Docker 共同开发。 Linux Containers 也可用于 Windows 10 版本 1709(“Creators Update 2”)。要试用它,请安装此处提供的特殊 Docker for Windows 预览版。

    请注意,这需要 Edge 版本的 docker - 在稳定频道中,此功能已禁用。

    【讨论】:

    • 是的,MobyLinuxVM 在 Hyper-V 管理器中可见,并且似乎与 Windows 容器配合良好。使用 Linux 容器时似乎无法启动。
    • MobyLinuxVM 未与 Windows 容器一起使用 - 仅适用于 linux,W10 原生支持 Windows 容器。创建一个新的虚拟机(在您的 W10 虚拟机中),看看定制的虚拟机是否也会失败。
    • 哦,我明白了。我从 Ubuntu .iso 快速创建了一个 VM,但启动失败并显示相同的错误消息。
    • 我试图让它在运行在 VMWare 下的 Windows 10 上运行。我已经安装了 Docker CE 的边缘版本并启用了实验选项。当切换到使用 linux 容器时,Moby Image 只是停留在“开始”状态。我遇到任何明显的错误
    猜你喜欢
    • 1970-01-01
    • 2020-07-17
    • 1970-01-01
    • 2019-02-22
    • 1970-01-01
    • 1970-01-01
    • 2020-02-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多