for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Docker "starts" first time with error, then a restart of docker is needed to run it

Open sweikelt opened this issue 5 years ago • 4 comments

Sorry if this here is duplicated. Unfortunately, due to the large number of reported errors, I can hardly narrow down the search

So first time starting docker runs into an error, but can be resolved by restarting it (description below) - okay it's working but do i have to do it really every time? PS: my colleagues have the same problem (other hardware)

  • [ x ] I have tried with the latest version of Docker Desktop
  • [ x ] I have tried disabling enabled experimental features
  • [ x ] I have uploaded Diagnostics
  • Diagnostics ID: A78660BB-30EB-493A-80D1-CA273ADE6BDA/20210708065553

Actual behavior

I start my PC, i start docker desktop, i wait till the docker icon in the taskbar turns red and an error is thrown i rightclick on the docker icon in the taskbar and press restart - now docker is working

Expected behavior

i just start docker desktop -> docker runs

Information

  • Windows Version: Windows 10 Pro (21H1) -> with former Versions it happens too
  • Docker Desktop Version: 3.5.1 (66090)
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: OnPrem, no VM

Steps to reproduce the behavior

do it like i write in "actual behavior"

System.InvalidOperationException: Der Dienst docker kann nicht auf dem Computer . gestartet werden. bei System.ServiceProcess.ServiceController.Start(String[] args) bei Docker.Backend.Processes.WindowsDockerDaemon.TryToStartService(Settings settings, String args, Dictionary2 env) in C:\workspaces\PR-16024\src\github.com\docker\pinata\win\src\Docker.Backend\Processes\WindowsDockerDaemon.cs:Zeile 208. bei System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_1.b__0(Object instance, Object[] methodParameters) bei System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei System.Web.Http.Controllers.ApiControllerActionInvoker.d__1.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei System.Web.Http.Controllers.ActionFilterResult.d__5.MoveNext() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) bei System.Web.Http.Dispatcher.HttpControllerDispatcher.d__15.MoveNext()

System.ComponentModel.Win32Exception: Es wird bereits eine Instanz des Dienstes ausgeführt`

sweikelt avatar Jul 08 '21 07:07 sweikelt

Update - yesterday i had to kill all my containers because of a windows update. i had several containers - some with hyper-v, some with process-isolation. now i just got some containers with process-isolation and no problems with starting docker the first time o_O. A colleague of mine said it might work if you stop the containers before shutting down the PC, but I haven't tried that yet.

sweikelt avatar Jul 09 '21 08:07 sweikelt

Update - again with hyper-v it's not starting at the first try

sweikelt avatar Jul 20 '21 05:07 sweikelt

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Oct 18 '21 01:10 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Dec 17 '21 03:12 docker-robott