【问题标题】:Simple instructions needed for enabling and disabling Hyper V Docker启用和禁用 Hyper V Docker 所需的简单说明
【发布时间】:2017-11-02 17:23:45
【问题描述】:

我之前问过类似的问题,但我想知道是否有人可以给我一些非常简单的说明,告诉我如何关闭 HyperV Container 功能,以便我可以使用 Virtual Box,然后重新打开它们以使用 Docker for Windows

目前我收到来自 Docker for Windows 的以下消息

“Hyper-V 和容器功能未启用。 你想让它们让 Docker 能够正常工作吗? 您的计算机将自动重新启动。 注意:VirtualBox 将不再工作。”

我不需要同时两个

我真的需要明确的指示,因为我不想处于让 docker 工作然后再也不能使用 Virtual Box 的位置!

我需要不时使用现有的 Virtual Box VM,但我不能处于无法使用它们的位置

保罗

【问题讨论】:

    标签: docker virtualbox docker-machine


    【解决方案1】:

    您可以执行以下操作来禁用

    dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
    bcdedit /set hypervisorlaunchtype off
    

    及以下启用

    dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
    bcdedit /set hypervisorlaunchtype auto 
    

    来自 PowerShell

    禁用

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
    

    启用

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
    

    PS:源线程

    https://superuser.com/questions/540055/convenient-way-to-enable-disable-hyper-v-in-windows-8

    How to disable Hyper-V in command line?

    【讨论】:

    • 使用 Powershell 启用没有完全起作用。 Docker 仍然说 hyper-v 未启用。 “bcdedit /set hypervisorlaunchtype auto”有效。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-03
    相关资源
    最近更新 更多