gpt4 book ai didi

docker - 启用和禁用 Hyper V Docker 所需的简单说明

转载 作者:IT老高 更新时间:2023-10-28 21:24:47 29 4
gpt4 key购买 nike

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

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

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

我不需要同时两个

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

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

保罗

最佳答案

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

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?

关于docker - 启用和禁用 Hyper V Docker 所需的简单说明,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47081205/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com