Docker提示WSL integration with distro ‘Ubuntu‘ unexpectedly stopped. Do you want t
WIN电脑下载Docker之后,报错:WSL integration with distro 'Ubuntu' unexpectedly stopped. Do you want to restart it?
纵然点击Skip Ubuntu WSL distro和Resrt the WSL integratrion也会一直弹这个对话框
具体内容:
retrieving homedir for Ubuntu distro: getting home folder for Ubuntu distro: running echo $HOME in Ubuntu: sending to distro: write |1: The pipe is being closed. https://i-blog.csdnimg.cn/direct/829d9ba9cebd4f069f4a7cb59d981334.png
参考了https://blog.csdn.net/xuukai/article/details/145671668
知道报错原因是Version不匹配,WSL用了VERSION 1,以是要进行版本升级VERSION 2:
具体办理步伐:
步骤 1:检查当前 WSL 版本支持
wsl --list --verbose https://i-blog.csdnimg.cn/direct/2812e264ea8a4d1b850ec90f6b75ad24.png
如果显示 Stopped 状态且版本为 1,说明必要升级。
步骤 2:设置默认 WSL 版本为 2
运行以下命令,将系统的默认 WSL 版本设置为 2:
wsl --set-default-version 2 步骤 3:将 Ubuntu 设置为 WSL 2
使用以下命令将 Ubuntu 的版本从 WSL 1 升级到 WSL 2:
wsl --set-version Ubuntu 2 实验后,系统会提示正在转换分发版的版本,并可能必要一些时间完成操纵。
https://i-blog.csdnimg.cn/direct/719bb286775d439bb9e606bb6fe9995e.png
步骤 4:验证版本更新
再次运行以下命令,确认 Ubuntu 的版本已更改为 2:
wsl --list --verbose https://i-blog.csdnimg.cn/direct/11ca4e32e58a4098926d584f18356e9a.png
此时点击Docker按钮Resrt the WSL integratrion就不再弹对话框了!
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]