简体   繁体   English

Docker 即使删除 appdata 中的文件夹,桌面也无法初始化

[英]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.

相关问题 Docker 初始化失败。 Docker 台式机正在关机 - Docker failed to initialize. Docker Desktop is shutting down Inno Setup:卸载过程中重新启动后删除文件夹 - Inno Setup: Deleting folders after restart during uninstallation Docker 桌面安装失败:在 Windows 10 上未满足一个先决条件 - Docker Desktop Installation failed: one prerequisite is not fulfilled on Windows 10 删除驱动器上的文件夹 - Deleting Folders on drive 删除数据库文件后,数据库已经存在 - Database already exists even after deleting the database files 使用Desktop App Converter创建UWP后安装失败 - Installation Failed after creating UWP with Desktop App Converter 构建后/构建前将文件复制到AppData \\ Roaming - Copying Files into AppData\Roaming after/before building 删除文件夹时forfiles错误 - forfiles error while deleting folders Docker for Desktop error during connect: Post A connection attempt failed because the connected party does not proper - Docker for Desktop error during connect: Post A connection attempt failed because the connected party did not properly 在哪里可以看到 Docker 桌面 Windows 安装失败的日志文件? - Where can I see log files for failed Docker Desktop Windows installation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM