profile
viewpoint

Ask questionsSystem.InvalidOperationException: Failed to deploy distro docker-desktop

<!-- Please, check https://docs.docker.com/docker-for-windows/troubleshoot/. Issues without logs and details cannot be debugged, and will be closed.

Issues unrelated to Docker Desktop will be closed. In particular, see

  • https://github.com/moby/moby/issues for Docker daemon, e.g. running on Windows Server with Docker EE
  • https://github.com/docker/compose/issues for docker-compose
  • https://github.com/docker/machine/issues for docker-machine
  • https://github.com/docker/docker.github.io/issues for the documentation -->

<!-- Click these checkboxes after submitting. --> <!-- Download Docker Desktop 'Edge' (latest build) here: https://hub.docker.com/editions/community/docker-ce-desktop-windows -->

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: E707C486-C1D9-47D8-9EB8-D285CDEA4902/20200512030235

Expected behavior

Docker Desktop boots on startup

Actual behavior

Docker fails to start with:

System.InvalidOperationException:
Failed to deploy distro docker-desktop to C:\Users\Mike\AppData\Local\Docker\wsl\distro: exit code: -1
 stdout: Error: 0xffffffff


 stderr: 
   at Docker.Core.WslShortLivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix, ILogger log, Int32 expectedExitCode) in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Core\WslCommand.cs:line 119
   at Docker.Engines.WSL2.WSL2Provisioning.<DeployDistroAsync>d__16.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 142
--- 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.<ProvisionAsync>d__6.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\WSL2Provisioning.cs:line 44
--- 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.<DoStartAsync>d__23.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.Desktop\Engines\WSL2\LinuxWSL2Engine.cs:line 91
--- 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.<WrapAsyncInCancellationException>d__0.MoveNext() in C:\workspaces\stable-2.3.x\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.<DoRunAsync>d__5.MoveNext() in C:\workspaces\stable-2.3.x\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.<DoRunAsync>d__5.MoveNext() in C:\workspaces\stable-2.3.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 92

Information

<!-- Please, help us understand the problem. For instance:

  • Is it reproducible?
  • Is the problem new?
  • Did the problem appear with an update?
  • A reproducible case if this is a bug, Dockerfiles with reproduction inside is best. -->
  • Windows Version: Version (2004)10.0.19041 Build 19041.208
  • Docker Desktop Version: 2.3.0.2
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Steps to reproduce the behavior

<!-- A reproducible case, Dockerfiles with reproduction inside is best. --> Unsure if the following will reproduce..

  1. Ensure WSL2 is enabled
  2. Install Docker-Desktop - say yes to using WSL2 when prompted
  3. Reboot

Other info - I have Ubuntu 20.04 LTS installed from the windows store, i use Windows Sandbox as well.

docker/for-win

Answer questions daserge

For me it was Hyper-V - everything is working fine after disabling it.

useful!

Related questions

DockerDesktopVM failed to start on Windows Server 2019
docker push fails (EOF) and is reported 50% bigger on Windows with LCOW experimental mode hot 3
Error response from daemon: open \\.\pipe\docker_engine_linux: The system cannot find the file specified. hot 3
Docker for Windows - Access Denied hot 2
Internal Host DNS cannot be resolved (Windows Container 1803) hot 2
error during connect Get https://192.168.99.100:2376/v1.38/containers/json hot 2
Docker timeout crash on switching to windows containers hot 2
"Unable to start": Failed to start Docker after an update hot 2
DNS resolution of short names on Windows not working hot 2
pulling images sometimes gets stuck hot 2
Unable to bind ports: Docker-for-Windows &amp; Hyper-V excluding but not using important port ranges hot 2
OSError: [Errno 22] Invalid argument in docker-compose in v2.0.0 hot 2
Unable to start Hyper-V VM: &#39;DockerDesktopVM&#39; failed to start. - for-win hot 2
Errror mkdir /host_mnt/c: file exists when restarting docker container with mount hot 2
vm.max_map_count in docker-desktop distro for WSL2 hot 2
source:https://uonfu.com/
Github User Rank List