启用和禁用Hyper V Docker所需的简单指令

我曾经问过类似的问题,但是我想知道是否有人可以给我一些关于如何closuresHyperV容器function的简单说明,以便我可以使用Virtual Box,然后将它们重新打开以使用Docker for Windows

目前,我从Docker for Windows收到以下消息

“Hyper-V和Containersfunction未启用,您是否希望启用Docker才能正常工作?您的计算机将自动重启注意:VirtualBox将不再工作。

我不需要在同一时间

我真的需要明确的指示,因为我不想处于一个让Docker工作的位置,所以再也不能使用Virtual Box了!

我有一个要求,现在使用我现有的虚拟盒式虚拟机,我不能处于我不能使用它们的位置

保罗

你可以在下面做禁用

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

如何在命令行中禁用Hyper-V?