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

Latest docker 4.1.1 fail to start with "System.InvalidOperationException: Failed to deploy distro docker-desktop..."

Open OzKron opened this issue 5 years ago • 5 comments

I get this error and .net seem to crash Tried install/reinstall

"System.InvalidOperationException: Failed to deploy distro docker-desktop to C:\Users\oz\AppData\Local\Docker\wsl\distro: exit code: -1 stdout: The system cannot find the file specified.

stderr: at Docker.ApiServices.WSL2.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\WSL2\WslCommand.cs:line 146 at Docker.Engines.WSL2.WSL2Provisioning.d__17.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\WSL2Provisioning.cs:line 168 --- 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 Docker.Engines.WSL2.WSL2Provisioning.d__8.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\WSL2Provisioning.cs:line 77 --- 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 Docker.Engines.WSL2.LinuxWSL2Engine.d__29.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 194 --- 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 Docker.ApiServices.StateMachines.TaskExtensions.d__0.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\TaskExtensions.cs:line 29 --- 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 Docker.ApiServices.StateMachines.StartTransition.d__5.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 67 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at Docker.ApiServices.StateMachines.StartTransition.d__5.MoveNext() in C:\workspaces\PR-16599\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92 "

Please, help us understand the problem. For instance:

  • Is it reproducible? YES
  • Is the problem new? YES
  • Did the problem appear with an update? YES
  • A reproducible case if this is a bug, Dockerfiles with reproduction inside is best. -->
  • Windows Version: windows 11 21h2 os build 22000.282
  • Docker Desktop Version: 4.1.1
  • WSL2 or Hyper-V backend? WSL2
  • Are you running inside a virtualized Windows e.g. on a cloud server or a VM: no

Steps to reproduce the behavior

  1. Fully removed Docker desktop
  2. Install and start it
  3. wait

OzKron avatar Oct 17 '21 08:10 OzKron

This looks similar to https://github.com/docker/for-win/issues/12226

It appears as if the upgrading proccess has had issues since at least version 3.3. Here are more related items: https://github.com/docker/for-win/issues/11350 https://github.com/docker/for-win/issues/12115 https://github.com/docker/for-win/issues/12278

I don't have enough facts to comment but it appears as if this is an area what is a particular weekness in the product.

So far the following worked in my environment to resolve this kind of issues:

  1. Uninstall current Docker Desktop version
  2. Reboot computer (this step is not always required, so you can try without this first)
  3. Install desired Docker Desktop version

ManfredLange avatar Oct 17 '21 19:10 ManfredLange

OK Tried it all like https://www.jeeja.biz/2021/02/07/how-to-fix-wsl2-incompatibility-with-docker/ Nothing helped :(

OzKron avatar Oct 18 '21 05:10 OzKron

Hi can you provide diagnostic, see the procedure at https://docs.docker.com/desktop/windows/troubleshoot/#diagnose-and-feedback?

fredericdalleau avatar Oct 21 '21 14:10 fredericdalleau

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 Jan 19 '22 01:01 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 Mar 20 '22 03:03 docker-robott