宽屏模式

docker desktop 启动报错

win11 启动docker 报错如下:

wsl update failed: update failed: updating wsl: exit code: 4294967295: runnin

查询后解决方法:

wsl --init # 会提示升级失败


Could not write value to key \SOFTWARE\Classes\Directory\shell\WSL. Verify that you have sufficient access to that key, or contact your support personnel. 更新失败(退出代码: 1603)。 Error code: Wsl/CallMsi/Install/ERROR_INSTALL_FAILURE

注册表重命名:

找到以下文件夹路径

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL

将文件夹名称右键重命名为

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shell\WSL_bak

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\background\shell\WSL_bak

计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\WSL_bak

再重新启动WSL可以正常使用了

Larwas
请先登录后发表评论
  • latest comments
  • 总共0条评论