当前位置:   article > 正文

Windows Docker Desktop 无法启动 自动退出报错信息为:Docker Desktop -Unexpected WsL error An unexpected error was e_an unexpected error occurred while executing a wsl

an unexpected error occurred while executing a wsl command. either shut down

问题描述

windows中打开Docker Desktop,页面中一直在加载,过一会就会弹出一个框,报错信息如下,如果你遇到的问题和我的一样,可以试试下面的这种解决方案…

报错信息:Docker Desktop -Unexpected WsL error An unexpected error was encountered while executing a WSL command. Commoncauses include access rights issues, which occur after waking the computer or notbeing connected to your domain/active directory. Please try shutting WSL down (wsl --shutdown) and/or rebooting your computer. lfnot sufficient, WSL may need to be reinstalled fully. As a last resort, try touninstall/reinstall Docker Desktop. lf the issue persists please collect diagnostics andsubmit an issue ..://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-termin...

解决方案

  1. 解决办法:管理员身份启动cmd/powershell运行这个命令netsh winsock reset,再重启电脑错误就消失了
netsh winsock reset
  • 1
  1. 使用nolsp,下载完毕nolsp后 将nolsp程序放置c盘,然后继续使用管理员身份启动cmd/powershell,
    注意:因为我的nolsp.exe文件是放置在c盘的根目录,所以用的一下命令。可以使用 cd 切换至你存放nolsp.exe的目录再执行一下程序
nolsp.exe C:\WINDOWS\system32\wsl.exe
  • 1

当出现success的提示就成功了

我是用的第一种方法解决的

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/808474
推荐阅读
相关标签
  

闽ICP备14008679号