Docker – Windows 10 – 在执行WSL命令时遇到意外错误

huangapple go评论110阅读模式
英文:

Docker - Windows 10 - An unexpected error was encountered while executing a WSL command

问题

I'm getting the below error after installing a new version of Docker Desktop:

> 安装新版本的 Docker Desktop 后,我遇到以下错误:

> An unexpected error was encountered while executing a WSL command.
> 在执行 WSL 命令时遇到了意外错误。
> Common causes include access rights issues, which occur after waking
> the computer or not being connected to your domain/active directory.
> 常见原因包括访问权限问题,这些问题在唤醒计算机后或未连接到域/活动目录时会发生。
> Please try shutting WSL down (wsl --shutdown) and/or rebooting your
> computer. If not sufficient, WSL may need to be reinstalled fully. As
> a last resort, try to uninstall/reinstall Docker Desktop. If the issue
> persists please collect diagnostics and submit an issue
> (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).

请尝试关闭 WSL(wsl --shutdown)和/或重新启动计算机。如果不足以解决问题,可能需要完全重新安装 WSL。作为最后的手段,请尝试卸载/重新安装 Docker Desktop。如果问题仍然存在,请收集诊断信息并提交问题(https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal)。

Thanks in advance.
提前感谢您的帮助。
I am installing Docker Desktop in Windows 10.
我正在在 Windows 10 上安装 Docker Desktop。

英文:

I'm getting the below error after installing a new version of Docker Desktop:

> An unexpected error was encountered while executing a WSL command.
> Common causes include access rights issues, which occur after waking
> the computer or not being connected to your domain/active directory.
> Please try shutting WSL down (wsl --shutdown) and/or rebooting your
> computer. If not sufficient, WSL may need to be reinstalled fully. As
> a last resort, try to uninstall/reinstall Docker Desktop. If the issue
> persists please collect diagnostics and submit an issue
> (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).

Thanks in advance.
I am installing Docker Desktop in Windows 10.

答案1

得分: 1

这是我处理过的案例。
您需要安装Ubuntu发行版并将其设置为Windows子系统的默认发行版。

英文:

That was the case I handled.
You need to install Ubuntu Distribution and set it as default Distribution of Windows Subsystem.

Docker – Windows 10 – 在执行WSL命令时遇到意外错误

huangapple
  • 本文由 发表于 2023年5月13日 10:42:52
  • 转载请务必保留本文链接:https://go.coder-hub.com/76240868.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定