問題描述
windows11啟動docker(版本為4.26.1)報錯:
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/#diagnose-from-the-terminal).
報錯原因
wsl環(huán)境指定沒有成功,就是wsl沒有被成功轉(zhuǎn)換為wsl2版本,執(zhí)行wsl --set-version Ubuntu-20.04 2報錯如下:
被這個問題卡了一周,試遍了docker社區(qū)的各種解決方案都不行,終于一步步試出了解決方案。
解決方案
啟用或者關(guān)閉windows功能里面取消勾選“windows虛擬機監(jiān)控程序平臺”,是取消勾選。網(wǎng)上自己能找到的該問題的解決方案沒有一個說要取消勾選的。
重啟電腦,重新執(zhí)行wsl --set-version Ubuntu-20.04 2命令。啟動docker,一切正常。文章來源:http://www.zghlxwxcb.cn/news/detail-848299.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-848299.html
到了這里,關(guān)于windows11啟動docker報錯:Docker Desktop - Unexpected WSL error的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!