【问题标题】:Docker Desktop 4.16.3 fails to start with error 'provisioning docker WSL distros: terminating WSL distro \"docker-desktop" 'Docker Desktop 4.16.3 无法启动并出现错误 \'provisioning docker WSL distros: terminating WSL distro \\\"docker-desktop\" \'
【发布时间】:2023-02-16 00:48:48
【问题描述】:

关于 Docker Desktop 无法启动的话题有很多问题,但据我所知,没有人解决过这个特定的错误(下面的格式已经过修改,以便于阅读

Docker.Core.HttpBadResponseException:
{"message":"1 error occurred:\n\t* provisioning docker WSL distros: terminating WSL distro \"docker-desktop\":
terminating WSL distro \"docker-desktop\": exit status 0xffffffff\n\n"}

   at Docker.Core.GoBackend.GoBackendClient.<PostNoBodyWithError>d__19.MoveNext() in 
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.Core\GoBackend\GoBackendClient.cs:line 226
--- 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__11.MoveNext() in
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.Engines\WSL2\LinuxWSL2Engine.cs:line 54
--- 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\4.16.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__6.MoveNext() in 
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 91
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Docker.ApiServices.StateMachines.StartTransition.<DoRunAsync>d__6.MoveNext() in 
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\StartTransition.cs:line 118
--- 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.EngineStateMachine.<StartAsync>d__15.MoveNext() in 
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.ApiServices\StateMachines\EngineStateMachine.cs:line 72
--- 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.Engines.<StartAsync>d__23.MoveNext() in 
C:\workspaces\4.16.x\src\github.com\docker\pinata\win\src\Docker.Engines\Engines.cs:line 109

此问题似乎与最近的 Docker Desktop 更新(适用于 Windows)以及 4.16.2 和 4.16.3 有关,其中部分发布是为了解决该问题,请参见例如 Docker Desktop Will Not Start #13184。但是,问题仍然存在(我正在运行 4.16.3)。

可以卸载并重新安装 Docker,但如果您希望保留现有的容器、卷等,那并不理想。

【问题讨论】:

    标签: windows docker windows-subsystem-for-linux wsl-2 docker-desktop


    【解决方案1】:

    我尝试了多种不同的方法来解决和解决此问题。最终起作用的是双重的。

    1:diablodale 注意到(就像我一样)docker-desktop 卡在了 Uninstalling 状态。他们建议手动注销系统发行版(例如查看 PowerShell 或命令提示符):

    wsl --unregister docker-desktop 
    
    1. 检查这是否成功完成:
    wsl -l -v --all
    

    不幸的是,这最初对我不起作用,他们有 qst2's comment

    1. 关闭 WSL:
    wsl --shutdown
    
    1. 然后重新启动 Docker Desktop。

    希望这可以帮助别人。

    【讨论】:

      猜你喜欢
      • 2022-10-16
      • 2022-10-21
      • 2020-07-19
      • 2022-12-22
      • 2022-12-11
      • 1970-01-01
      • 2023-01-04
      • 1970-01-01
      • 2020-12-10
      相关资源
      最近更新 更多