我按照说明安装了docker和wsl 2,但出现了错误。
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 fully reinstalled. As a last resort, try to uninstall/reinstall Docker Desktop. If the issue persists please collect diagnostics and submit an issue (https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal).
Error details: 2 errors occurred:
* provisioning docker WSL distros: deploying "docker-desktop": importing WSL distro "Error: 0xffffffff\r\r\n" output="docker-desktop": running WSL command "wsl.exe --import docker-desktop C: \\Users\\Dark1\\AppData\\Local\\Docker\\wsl\\distro C:\\Program Files\\Docker\\Docker\\resources\\wsl\\wsl-bootstrap.tar
--version 2 " failed with output "Error: 0xffffffff\r\r\n": exit status 0xffffffff
* checking if isocache exists: CreateFile \\wsl$\docker-desktop-data\isocache\: The network name cannot be found.
我已经尝试了互联网和YouTube上的所有方法,但结果仍然是一样的
1条答案
按热度按时间fwzugrvs1#
如果你是windows使用只是打开cmd和按照这过程
确保运行的ubuntu不在那里,您必须使用以下命令wsl --unregister Ubuntu将其删除,这将确保工作
C:\WINDOWS\system32〉wsl -l -v名称状态版本
C:\WINDOWS\system32〉wsl --unregister Ubuntu Unregistering。操作成功完成。
C:\WINDOWS\system32〉wsl -l -v名称状态版本