如图错误提示:
Failed to start service: The service did not respond to the start or control request in a timely fashion
at CommunityInstaller.Service.Service.<StartAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at CommunityInstaller.Service.Manager.<AddServiceAsync>d__7.MoveNext()
参考资料:
Error Installing Docker Desktop for Windows 10 - Stack Overflow
以下几种解决方案,其中第二种方法解决了我的问题。
删除 %appdata%\Docker 文件夹。
一、power off
- Open msconfig.exe in the windows menu bar
- Go to the "services" tab
- Start typing "power" and it will auto find the correct service.
- Untick the checkbox
- Restart your PC
- Make sure you do not have any Docker installation files in your drive
- Start the installation process again and hopefully that'll work for you
二、延长时间
- Click Start, click Run, type Regedit, and then click OK.
- Locate and then click the following registry subkey:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
- In the right pane, locate the ServicesPipeTimeout entry. Note If the ServicesPipeTimeout entry does not exist, you must create it. To do this, follow these steps:
- On the Edit menu, point to New, and then click DWORD Value.
- Type ServicesPipeTimeout, and then press ENTER.
- Right-click ServicesPipeTimeout, and then click Modify.
- Click decimal, type 60000, and then click OK.
三、注册表
- 升级系统到最新windows 10
- Open Windows in Safe Mode
- go to run and type -> RegEdit
- Traverse to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant
- Now change Start value to 4.
- Restart and try to install docker now.
在尝试安装Docker Desktop for Windows 10时遇到错误,通过Stack Overflow上的建议,提供了三种解决方案。第一种是关闭电源管理服务;第二种是延长ServicesPipeTimeout注册表键的值;第三种是在安全模式下修改SysPlant服务的启动类型。其中第二种方法成功解决了安装问题。

被折叠的 条评论
为什么被折叠?



