基于安装docker desktop失败的解决方案
作者:web小奶精
背景
我之前安装了docker desktop,发现版本不对,我就卸载了,然而重新安装时,确安装失败了
报错如下
Docker desktop 3.1.0
Installation failed
Component CommunityInstaller.ServiceAction failed: 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__29.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__23.
解决办法
步骤1:删除服务
打开cmd 输入以下命令
sc delete Docker Desktop Service
步骤2:删除有关docker的文件
C:\Program Files\Docker
C:\Users\xxx(自己的账号目录下)\.docker
步骤3:禁用power服务
在搜索框输入msconfig.exe打开system configuration
取消勾选power并apply后重启电脑
步骤4:用管理员身份运行安装包
终于成功安装上了,安装完之后再把那个power勾选回来就行
总结
以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。