简体   繁体   English

Docker 初始化失败。 Docker 台式机正在关机

[英]Docker failed to initialize. Docker Desktop is shutting down

I run Windows 11 and when I try to start Docker desktop app it gives me the following error: Docker failed to initialize. Docker Desktop is shutting down.我运行Windows 11 ,当我尝试启动Docker desktop app时,它给了我以下错误: Docker failed to initialize. Docker Desktop is shutting down. Docker failed to initialize. Docker Desktop is shutting down.

I have tried several thing before posting this:在发布之前我已经尝试了几件事:

  1. Uninstalled Docker desk app and installed it again.卸载Docker desk app并再次安装。
  2. Uninstalled it, restarted the computer, updated WSL 2 and installed the app again.卸载它,重新启动计算机,更新WSL 2并再次安装该应用程序。

How can I fix it?我该如何解决? Any suggestions?有什么建议么? Thanks.谢谢。

Go to C drive, Users, Select your user, App data, Roaming and then delete the Docker folder. Go 到 C 驱动器,用户,Select 您的用户,应用程序数据,漫游然后删除 ZC5C5FD2724CD3B0D2B 文件夹。 You shall be able to start docker again.您应该能够再次启动 docker。

I have encountered the same problem too and already try many solution found on the internet.我也遇到了同样的问题,并且已经尝试了在互联网上找到的许多解决方案。

I have found this issue and manually run C:\Program Files\Docker\Docker\resources\com.docker.backend.exe, then I got this error.我发现了这个问题并手动运行 C:\Program Files\Docker\Docker\resources\com.docker.backend.exe,然后我得到了这个错误。

[2022-07-23T13:14:00.191660000Z][com.docker.backend.exe][E] 
verifying docker scan plugin config: saving JSON: open 
<HOME>\.docker\scan\config.json: Access is denied.
[main.main()
[       common/cmd/com.docker.backend/main.go:96 +0x85

After removing '.docker/config.json' in C:\Users\{YOUR_USERNAME} folder, everything works fine after restarting docker desktop.删除 C:\Users\{YOUR_USERNAME} 文件夹中的 '.docker/config.json' 后,重新启动 docker 桌面后一切正常。

Hope my answer help.希望我的回答有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM