解决Rancher Desktop win10无法启动问题

707次阅读
没有评论

最近想尝试 Rancher Desktop,但是在我的 win10 电脑上无法启动,一直报错。

报错截图如下:

解决 Rancher Desktop win10 无法启动问题

文字报错如下:

Kubernetes Error
Rancher Desktop 1.3.0 – win32 (x64)
Error Starting Kubernetes
Error: wsl.exe exited with code 4294967295
Last command run:
wsl.exe –distribution rancher-desktop –exec /bin/sh -c [-e /etc/os-release] && . /etc/os-release ; echo ${VERSION_ID:-0.1}

Context:
Starting Kubernetes

Some recent logfile lines:
2022-05-03T02:10:58.219Z: Registered distributions: CentOS7,docker-desktop,rancher-desktop,docker-desktop-data,Ubuntu-20.04
2022-05-03T02:10:58.395Z: Registered distributions: CentOS7,docker-desktop,rancher-desktop,docker-desktop-data,Ubuntu-20.04
2022-05-03T02:10:58.575Z: WSL: executing: /bin/sh -c [-e /etc/os-release] && . /etc/os-release ; echo ${VERSION_ID:-0.1}: Error: wsl.exe exited with code 4294967295

解决问题:

可以看到 Rancher Desktop 启动时会执行 wsl shell 检查命令,但是命令检查失败了,这里可以使用 cmd 终端手动执行命令试试

解决 Rancher Desktop win10 无法启动问题

可以看到报错如下,大概率是 win10 的 wsl 网络出现了问题,因为我电脑上安装有网易 UU 加速器,很可能是因为这个导致了网络冲突。

相关问题:https://github.com/microsoft/WSL/issues/4177

https://zhuanlan.zhihu.com/p/151392411

这里使用 Github 上网友提供的注册表解决办法解决问题。

下载 https://baijifeilong.github.io/wsl2.reg 执行即可

问题解决:

解决 Rancher Desktop win10 无法启动问题

Rancher 启动成功

解决 Rancher Desktop win10 无法启动问题
解决 Rancher Desktop win10 无法启动问题

正文完
 
ddn
版权声明:本站原创文章,由 ddn 2022-05-03发表,共计1033字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。