如何解决docker获取错误0xffffffff?



按照说明安装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: 0xffffffffrrn" 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: 0xffffffffrrn": exit status 0xffffffff
* checking if isocache exists: CreateFile \wsl$docker-desktop-dataisocache: The network name cannot be found.

我已经尝试了互联网和YouTube上所有的方法,但结果仍然是相同的

如果你是Windows,只需打开CMD并遵循过程

确保ubuntu没有运行,你必须使用以下命令删除它wsl——unregister ubuntu这肯定会起作用

C:WINDOWSsystem32>wsl -l -v名称状态版本

  • Ubuntu Runningdocker-desktop-data运行2

C:WINDOWSsystem32>wsl——unregister Ubuntu取消注册。操作成功完成。

C:WINDOWSsystem32>wsl -l -v名称状态版本

  • docker-desktop-data Running

最新更新