Solution to failed installation of docker desktop

Background: I installed docker desktop before and found that the version was wrong, so I uninstalled it. However, when I reinstalled it, the installation failed.

The error is reported as follows:

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.
 

Solution:

Step 1: Remove the service

Open cmd and enter the following command

sc delete Docker Desktop Service

Step 2: Delete files about docker

C:\Program Files\Docker

C:\Users\xxx (under your own account directory)\.docker

Step 3: Disable power service

Enter msconfig.exe in the search box to open system configuration

Uncheck power and apply and then restart the computer

Step 4: Run the installation package as administrator

It was finally installed successfully. After installation, just check the power back.

Guess you like

Origin blog.csdn.net/fenger_c/article/details/114800687