Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error Installing Docker Desktop for Windows 10

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()

I'm getting this error during install - the previous install hung and then onwards it does not complete successfully. Any idea how to repair this or cleanup and restart?

--- 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.ServiceAction.<DoAsync>d__36.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at CommunityInstaller.InstallWorkflow.<HandleD4WPackageAsync>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.InstallWorkflow.<ProcessAsync>d__24.MoveNext()
like image 641
Roy Avatar asked May 15 '20 03:05

Roy


People also ask

Why is Docker not working Windows 10?

Operating System If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.

How do I install Dockers on Windows 10?

Go to the website https://docs.docker.com/docker-for-windows/install/ and download the docker file. Note: A 64-bit processor and 4GB system RAM are the hardware prerequisites required to successfully run Docker on Windows 10. 2. Then, double-click on the Docker Desktop Installer.exe to run the installer.

Can we install Docker desktop on Windows 10 home?

Docker only supports Docker Desktop on Windows for those versions of Windows 10 that are still within Microsoft's servicing timeline. Containers and images created with Docker Desktop are shared between all user accounts on machines where it is installed.

Is Docker supported on Windows 10?

Docker Desktop for Windows runs on Windows 10. Container type: Microsoft supports Windows Server containers with Hyper-V isolation.


Video Answer


6 Answers

Disabling the power service worked for me too.

  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
like image 150
Ashique Ansari Avatar answered Oct 12 '22 12:10

Ashique Ansari


I have faced a similar issue and needed to do the following:

  1. Uninstall.

  2. If there are any leftovers, you should:

    • Run the RegEdit with Admin Rights.
    • Delete all remaining entries of Docker Desktop.

After this, I was able to install it properly. Also, I have noticed in my case, this situation has become repetitive in every update.

P.S.:

The power idea proposed in the previous answers didn't work in my case. Somehow, the installation got corrupted and couldn't run. This has happened more than once after Docker tries to update.

like image 25
Federico Navarrete Avatar answered Oct 11 '22 21:10

Federico Navarrete


I had the same issue and seemed to start happening after the lasted window update.

I manage to solve the issue by stopping and disabling the "power" (Power management) window service. I did repeat the process two times and seemed to be a consistent issue, at least in my case. Be sure this service is not running, at least in my case it worked, hope this helps.

Some references: - https://github.com/docker/for-win/issues/6091

like image 29
Rigre Garciandía Avatar answered Oct 12 '22 12:10

Rigre Garciandía


To anyone getting this error:

Component CommunityInstaller.EnableFeaturesAction failed

The fix for me was enabling this service:

Windows Modules Installer

Note I used a tool [1] to do this, but I think you can also just use the normal Services App.

  1. https://github.com/WereDev/Wu10Man
like image 44
Zombo Avatar answered Oct 12 '22 13:10

Zombo


I tried everything (reboot, different versions 2.5, 3.0, 3.3, power, disabling real-time protection). Only increasing timeout helped me:

  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.
like image 2
Sergey Avatar answered Oct 12 '22 13:10

Sergey


I faced the same issue while installing Docker 3.5.0

Download failed: Could not find a part of the path ‘C:\Users\name\AppData\Local\Temp\rzsiezg3p2h’. at CommunityInstaller.InstallWorkflow.d__23.MoveNext()

I resolved it by following these steps.

  1. Download and install docker 2.5.0.1
  2. After installation open docker desktop.
  3. A pop-up appears to update docker to 3.4.0 (or later), click update.
  4. Once updated you are ready to launch and play with docker desktop.

Alternately you can try downloading and installing docker 3.4.0 directly.

like image 2
Varun Avatar answered Oct 12 '22 14:10

Varun