Docker Desktop for Windows 10 Installation Failure

在尝试安装Docker Desktop for Windows 10时遇到错误,通过Stack Overflow上的建议,提供了三种解决方案。第一种是关闭电源管理服务;第二种是延长ServicesPipeTimeout注册表键的值;第三种是在安全模式下修改SysPlant服务的启动类型。其中第二种方法成功解决了安装问题。

如图错误提示:

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

  1. Open msconfig.exe in the windows menu bar
  2. Go to the "services" tab
  3. Start typing "power" and it will auto find the correct service.
  4. Untick the checkbox
  5. Restart your PC
  6. Make sure you do not have any Docker installation files in your drive
  7. Start the installation process again and hopefully that'll work for you

二、延长时间

  1. Click Start, click Run, type Regedit, and then click OK.
  2. Locate and then click the following registry subkey:
  3. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
  4. 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.
  1. Right-click ServicesPipeTimeout, and then click Modify.
  2. Click decimal, type 60000, and then click OK.

三、注册表

  1. 升级系统到最新windows 10
  2. Open Windows in Safe Mode
  3. go to run and type -> RegEdit
  4. Traverse to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SysPlant
  5. Now change Start value to 4.
  6. Restart and try to install docker now.
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值