window 无法访问docker,无法在Windows上启动Docker

本文详细描述了解决Windows 10中Docker启动错误,涉及Hyper-V问题,步骤包括检查Virtual Machine Management服务和启用控制流保护。最终通过重启和管理员权限操作解决了问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I continue to get the following error when trying to start docker on Windows 10 pro. my HyperV is turned on and running:

Version 18.04.0-ce-win62 (17151)

Channel: edge

e0a85f6

Any help would be appreciated!

Unable to create: The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Hyper-V encountered an error trying to access an object on computer 'C001715587' because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running.

at New-Switch, : line 117

at , : line 394

at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Core\pipe\NamedPipeClient.cs:line 36

at Docker.Actions.DoStart(SynchronizationContext syncCtx, Boolean showWelcomeWindow, Boolean executeAfterStartCleanup) in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 75

at Docker.Actions.<>c__DisplayClass15_0.b__0() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.Windows\Actions.cs:line 59

at Docker.WPF.TaskQueue.<>c__DisplayClass19_0.<.ctor>b__1() in C:\gopath\src\github.com\docker\pinata\win\src\Docker.WPF\TaskQueue.cs:line 59

解决方案Open Windows Security

Open App & Browser control

Click Exploit protection settings

Switch to Program settings tab

Locate C:\WINDOWS\System32\vmcompute.exe in the list and expand it

Click Edit

Scroll down to Control flow guard (CFG) and uncheck Override system settings

Start vmcompute from powershell net start vmcompute (or alternately start the Hyper-V Host Compute Service from the system Services app)

Restart PC

Open Hyper-V as Administrator

Connect to Server, Local computer, OK

The above worked for me. I couldn't run docker, then I realized I couldn't connect to my local machine on hyper-v. I kept reading suggestions to reinstall hyper-v and do some restarts but this is what finally worked.

### Windows Docker Installation Won't Start Troubleshooting For users encountering issues where Docker does not start after installation on a Windows operating system, several potential solutions exist. The following guidance can help diagnose and resolve common problems. #### Verify System Requirements Ensure that the machine meets all necessary requirements for running Docker Desktop on Windows. This includes having Hyper-V and Containers features enabled as well as ensuring compatibility with Windows 10 Pro or Enterprise editions[^1]. #### Check Virtualization Settings Confirm virtualization settings are properly configured within BIOS/UEFI firmware options before attempting to run any containerized applications like Docker. Incorrect configurations may prevent proper operation of required services such as Hyper-V which underpins much of what makes containers work efficiently on Windows platforms[^2]. #### Examine Event Viewer Logs If Docker fails to initialize correctly upon launch, examining logs found through Windows' built-in Event Viewer tool might provide insight into specific errors preventing successful startup. Look specifically at Application and Service Logs -> Microsoft -> Windows -> Docker path inside Event Viewer interface[^3]. #### Reinstall Docker Desktop Sometimes simply reinstalling Docker Desktop could fix underlying configuration issues causing it not to boot up properly post-installation. Uninstall existing version first via Control Panel's Programs list prior to downloading latest installer from official website again[^4]. ```powershell # PowerShell command to uninstall Docker Desktop using winget package manager (if applicable) winget uninstall --id=Docker.DockerDesktop ``` #### Enable WSL 2 Backend Support Since newer versions rely heavily on WSL 2 backend support rather than older Moby VM approach used previously by default when setting up Linux environments locally, enabling this feature explicitly during setup process should be considered too if facing persistent trouble getting things going smoothly otherwise[^5].
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值