Docker和VMware冲突:VMware Workstation and Device/Credential Guard are not compatible报错解决

本地安装了Docker和VMware后,无法同时启动。因为Docker和VMware都相当于Hypervisor,并且基于虚拟机属性需要获取对CPU等硬件的掌控权,因为在同一台机器上无法同时运行。

VMware报错

VMware Workstation and Device/Credential Guard are not compatible. VMware Workstation can be run after disabling Device/Credential Guard. Please visit http://www.vmware.com/go/turnoff_CG_DG for more details.

Windows features on or off

通过切换windows features选项开启或者关闭Hyper - H选项,选中状态下可启动docker应用

Docker和VMware冲突:VMware Workstation and Device/Credential Guard are not compatible报错解决

关闭过程中遇到报错 Error code 0x80073701

Virtualization Based Security

WIN+R 打开运行

输入 gpedit.msc 打开  Group Policy Editor

Computer Configuration -> Administrative Templates -> System -> Device Guard 

双击打开配置选项 Turn on Virtualization Based Security 选择disable

Docker和VMware冲突:VMware Workstation and Device/Credential Guard are not compatible报错解决

 PowerShell command

开始 - Windows PowerShell (Admin)

开启命令为

bcdedit /set hypervisorlaunchtype auto

关闭命令为

bcdedit /set hypervisorlaunchtype off