程序问答   发布时间:2022-06-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)?

开发过程中遇到WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)的问题如何解决?下面主要结合日常开发的经验,给出你关于WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)的解决方法建议,希望对你解决WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)有所启发或帮助;

我怀疑这与新的 windows InsIDer 更新有关,但我很迷茫。

我尝试过的东西

  • 在“windows 功能”中取消选中适用于 linux 的 Hyper-V、容器和 windows 子系统
  • 以管理员身份运行 docker
  • 将 WSL 降级到版本 1
  • 卸载和重新安装 Docker
  • 更新和升级 Ubuntu

这是日志:

system.invalIdoperationException:
Failed to deploy distro docker-desktop to C:\Users\mburk\ApPDAta\Local\Docker\wsl\distro: exit code: -1
 stdout: The parameter is incorrect.


 stderr: 
   at Docker.APIservices.WSL2.WslShortlivedCommandResult.LogAndThrowIfUnexpectedExitCode(String prefix,ILogger log,Int32 expectedExitCodE) in C:\workspaces\PR-15633\src\github.com\docker\pinata\win\src\Docker.APIservices\WSL2\WslCommand.cs:line 146
   at Docker.ENGInes.WSL2.WSL2Provisioning.<Deploydistroasync>d__17.MoveNext() in C:\workspaces\PR-15633\src\github.com\docker\pinata\win\src\Docker.Desktop\ENGInes\WSL2\WSL2Provisioning.cs:line 169
--- 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__8.MoveNext() in C:\workspaces\PR-15633\src\github.com\docker\pinata\win\src\Docker.Desktop\ENGInes\WSL2\WSL2Provisioning.cs:line 78
--- 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__26.MoveNext() in C:\workspaces\PR-15633\src\github.com\docker\pinata\win\src\Docker.Desktop\ENGInes\WSL2\linuxWSL2ENGIne.cs:line 104
--- 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\PR-15633\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\PR-15633\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\PR-15633\src\github.com\docker\pinata\win\src\Docker.APIservices\StateMachines\StartTransition.cs:line 92

尽力为大家提供尽可能多的信息,请发表评论,如果您需要更多信息,请告诉我。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)全部内容,希望文章能够帮你解决WSL 2:Docker 不会启动“参数不正确”。 (Windows Insider Build 21364)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。