我正在尝试在我的 Windows 10 Pro 64 位计算机上运行 Docker 桌面,其构建规范和设置详细信息如下,
- 版本——Windows 10 专业版 64 位
- 版本——1903
- 操作系统版本 -- 18362.657
- CPU——英特尔 i7
- Hyper-V 状态 - 已启用,我可以看到所有服务都运行良好。
我已经安装了 Docker Desktop 版本 2.2.0.3 (42716)。我以管理员身份运行它,在启动过程中它会抛出以下错误。
- [12:59:40.968][HyperV][信息]正在创建 VM DockerDesktopVM...
- [12:59:44.416][HyperV][Error] Unable to create Hyper-V VM: Microsoft.HyperV.PowerShell.VirtualizationException:
Hyper-V encountered an error trying to access an object on computer 'DESKTOP-1SOMU3A' because the object was not found. The object might have been deleted,
or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running.
If the service is running, try to perform the task again by using Run as Administrator. ---> Microsoft.Virtualization.Client.Management.ObjectNotFoundException:
Hyper-V encountered an error trying to access an object on computer 'DESKTOP-1SOMU3A' because the object was not found.
The object might have been deleted, or you might not have permission to perform the task. Verify that the Virtual Machine Management service on the computer is running.
If the service is running, try to perform the task again by using Run as Administrator.
at Microsoft.Virtualization.Client.Management.HostComputerSystemView.GetPrimordialResourcePool(VMDeviceSettingType deviceType)
at Microsoft.Virtualization.Client.Management.HostComputerSystemView.GetSettingCapabilities(VMDeviceSettingType deviceType, SettingsDefineCapabilities capability)
at Microsoft.HyperV.PowerShell.VMScsiController.CreateTemplateScsiController(VirtualMachine parentVirtualMachine)
at Microsoft.HyperV.PowerShell.Commands.NewVM.ConfigureVirtualMachine(VirtualMachine vm, IOperationWatcher operationWatcher)
at Microsoft.HyperV.PowerShell.Commands.NewVM.CreateObjects(IOperationWatcher operationWatcher)
我已经搜索过类似的问题,并且到目前为止已经完成了以下操作,但没有成功。
- 卸载并重新安装 Docker Desktop(系统重新启动)
- 在应用程序功能中打开和关闭 Hyper-V(系统重新启动)
- 更改了我的系统名称以避免任何特殊字符(尽管查看
错误消息它没有反映更改后的系统名称)。
不确定可能是什么问题。请提供指导。
Thanks
看来这还是一个开放问题 https://github.com/docker/for-win/issues/2110在适用于 Windows 的 Docker 上。正如建议的issue https://github.com/docker/for-win/issues/2110#issuecomment-517684264 and 这个线程 https://social.technet.microsoft.com/Forums/en-US/ee5b1d6b-09e2-49f3-a52c-820aafc316f9/hyperv-doesnt-work-after-upgrade-to-windows-10-1809?forum=win10itprovirt你可以试试:
Open 窗户安全
Open 应用程序和浏览器控制
Click 利用保护设置在底部
切换到程序设置 tab
Locate C:\WINDOWS\System32\vmcompute.exe
在列表中并将其展开
Click Edit
向下滚动到代码流防护(CFG)并取消选中覆盖系统设置
Start vmcompute
来自 PowerShell:net start vmcompute
解决这个问题可能会很有用,因为您可以找到其他潜在的解决方案,例如让您的主机名和 netbiosname 匹配 https://github.com/docker/for-win/issues/2110#issuecomment-449957618.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)