报错:
Docker Desktop- Unexpected WSL error 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 (//docs.docker.com/desktop/troubleshoot/overview/#fdiagnose-from-the-terminal)。

网上的各种方法、命令、windows功能开关都尝试过了,但我的电脑上打开Docker一直会报这个错。
Docker的官网上告诉我们在windows上安装有两种方法,一个是使用wsl一个是使用hyper-v。
Install Docker Desktop on Windows | Docker Docs
于是我尝试重新安装docker时,选择不使用wsl,而是hyper-v,一下就打开了。
红色方框不要勾选:即使用hyper-v

文章讲述了作者在Windows上遇到DockerDesktop的WSL错误,尝试了各种解决方案后,通过不使用WSL而选择Hyper-V进行安装成功解决了问题。建议对遇到类似错误的用户作为参考。

4789

被折叠的 条评论
为什么被折叠?



