[英]Docker Desktop failed to initialize even after deleting folders in appdata
Trying to install Docker desktop on Windows 10, executing the program (even as administrator) doesn't do anything, nothing shows up.尝试在 Windows 10 上安装 Docker 桌面,执行程序(即使以管理员身份)没有做任何事情,没有任何显示。 After running the executable again, it returns docker failed to initialize.再次运行可执行文件后,它返回 docker failed to initialize。
Some suggestions, such as the ones in this post mention deleting docker folders in AppData (both in Local and Roaming) to erase configuration problems that might exist.一些建议,例如这篇文章中提到的删除 AppData(本地和漫游)中的 docker 文件夹以消除可能存在的配置问题。 This did not work for me.这对我不起作用。
I also tried rebooting the pc and re-installing Docker, activating and desactivating both WSL2 and Hyper-V, but nothing worked.我还尝试重新启动电脑并重新安装 Docker,激活和停用 WSL2 和 Hyper-V,但没有任何效果。
Checking on the log file found in C:\Users${USER}\AppData\Local\Docker\log.txt i found that the first execution never finishes, because is in a crash loop.检查在 C:\Users${USER}\AppData\Local\Docker\log.txt 中找到的日志文件,我发现第一次执行永远不会完成,因为它处于崩溃循环中。 It fails to execute the command powershell
, stating that the command cannot be found, then tries to restar the application.它无法执行命令powershell
,说明找不到该命令,然后尝试重新启动应用程序。
That is indeed true if I check on the cmd console, i cannot execute the command powershell
since it is not recognized.如果我在 cmd 控制台上检查确实如此,我无法执行命令powershell
因为它无法识别。
To fix this I added C:\Windows\SysWOW64\WindowsPowerShell\v1.0
to the PATH environment variable, stopped Docker Desktop processes from the task manager and executed it again.为了解决这个问题,我将C:\Windows\SysWOW64\WindowsPowerShell\v1.0
添加到 PATH 环境变量中,从任务管理器停止 Docker 桌面进程并再次执行它。 This solved my issue.这解决了我的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.