无法在 Mac OS X 主机上的 Windows 10 VirtualBox VM 中基于 运行 docker 的 Windows 容器
Cannot run docker based Windows container in Windows 10 VirtualBox VM on Mac OS X host
当我尝试使用以下命令 运行 基于 docker 的 Windows 容器时出现以下错误:
docker pull microsoft/dotnet-framework
docker run -it microsoft/dotnet-framework cmd
docker: Error response from daemon: container 31112532fbefca415cfb10134612cf4467c084e93e699b7caa320ca60f5df266 encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system. (0xc0351000)
Docker for Windows 在 Macbook Pro(基于英特尔,2016,OS X El船长)。在 Docker 的设置中,我切换到使用 Windows 容器。 OS X 是否存在特定问题?因为我可以在 PC 运行ning Windows 10 Pro.
上完成这项工作
当 运行在 Windows 10 上安装 Docker Windows 容器时,需要 Hyper-V。这不适用于 VirtualBox,因为 VirtualBox does not support nested virtualization.
相反,您应该 Windows VirtualBox VM 中的 Server 2016 (WS2016)。 WS2016 可以 运行 Docker Windows 具有进程隔离的容器,不需要 Hyper-V。
你可以trial WS2016 for free and Stefan Scherer maintains a set Vagrant scripts that automate setup and configuration。
当我尝试使用以下命令 运行 基于 docker 的 Windows 容器时出现以下错误:
docker pull microsoft/dotnet-framework
docker run -it microsoft/dotnet-framework cmd
docker: Error response from daemon: container 31112532fbefca415cfb10134612cf4467c084e93e699b7caa320ca60f5df266 encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system. (0xc0351000)
Docker for Windows 在 Macbook Pro(基于英特尔,2016,OS X El船长)。在 Docker 的设置中,我切换到使用 Windows 容器。 OS X 是否存在特定问题?因为我可以在 PC 运行ning Windows 10 Pro.
上完成这项工作当 运行在 Windows 10 上安装 Docker Windows 容器时,需要 Hyper-V。这不适用于 VirtualBox,因为 VirtualBox does not support nested virtualization.
相反,您应该 Windows VirtualBox VM 中的 Server 2016 (WS2016)。 WS2016 可以 运行 Docker Windows 具有进程隔离的容器,不需要 Hyper-V。
你可以trial WS2016 for free and Stefan Scherer maintains a set Vagrant scripts that automate setup and configuration。