【问题标题】:Docker inside VirtualBoxVirtualBox 中的 Docker
【发布时间】:2017-06-02 21:08:29
【问题描述】:

简短:是否可以在 VirtualBox(Windows 10 企业版)中运行 docker 容器(microsoft/windowsservercore)。主机操作系统是 Windows 10 专业版?

Long:我设法在 VirtualBox (Win10Ent) 中安装并启动 docker,但是当我尝试创建容器时出现以下错误:

docker.exe: Error response from daemon: container b9aef43f6b30853bc1f32fc663fdb5155a62f0dcb4be860c23a8b48fefae4d0a encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system.

Here是类似的问题,结论是VirtualBox不支持嵌套虚拟化,所以Docker不能在里面运行。

话虽如此,VirtualBox 机器在 Settings -> System -> Acceleration -> Hardware Virtualization 下的选项是什么? 如果 VirtualBox 不支持嵌套虚拟化,你能解释一下这个设置选项卡的真正含义吗?

【问题讨论】:

    标签: docker virtualbox


    【解决方案1】:

    Virtualbox 硬件虚拟化选项是允许处理器提供的虚拟化功能(https://www.virtualbox.org/manual/ch10.html)。这对嵌套虚拟化没有帮助。 只要里面没有运行虚拟机管理程序,您就可以在 Virtualbox 中的 Docker 中运行。当我们在 Virtualbox 中的 Linux 系统上运行 Docker 时就是这种情况。使用 Windows 服务器,他们运行 hyperv 以及在其之上运行 Docker 运行的 Windows 服务器。这就是这里需要嵌套虚拟化的原因。对于这种情况,请使用支持嵌套虚拟化的 Vmware player 之类的东西。我在需要嵌套虚拟化的情况下使用 VMware 播放器。另一种选择是使用具有 hyperv 的本机 Windows 服务器。

    【讨论】:

    • 嗨@Sreeni。然后我尝试使用 VMWare Workstation 12 Player。我尝试在里面安装 Win10/Win2016Server,遵循这条指令link,在来宾操作系统中启用 Hyper-V 后唯一得到的是蓝屏,停止代码为 DPC WATCHDOG VIOLATION。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-05
    • 1970-01-01
    • 2017-03-08
    • 2018-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多