简体   繁体   English

Docker 初始化失败

[英]Docker failed to initialize

I am trying to install the Docker community edition for windows, the installation was successful and it asked me to logout and login again and I did same.我正在尝试为 Windows 安装 Docker 社区版,安装成功,它要求我注销并再次登录,我也这样做了。 But when I tried to start the docker it says -但是当我尝试启动 docker 时,它说 -

A task was canceled.一个任务被取消。 at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.WPF.BackendClient.Version() at Docker.Program.Run(IReadOnlyCollection`1 args)在 Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) 在 Docker.WPF.BackendClient.Version() 在 Docker.Program.Run(IReadOnlyCollection`1 args)

It is giving me below options -它给了我以下选项 -

Docker 错误

Any help or pointers will really helpful.任何帮助或指示都会非常有帮助。

只需要删除 C:\\Users\\xxxxxxx\\AppData\\Roaming\\Docker 中的文件即可修复

I am trying to install the Docker community edition for windows, the installation was successful and it asked me to logout and login again and I did same.我正在尝试为Windows安装Docker社区版本,安装成功,它要求我注销并再次登录,我也做了同样的事情。 But when I tried to start the docker it says -但是,当我尝试启动docker时,它说-

A task was canceled.任务已取消。 at Docker.Core.Pipe.NamedPipeClient.Send(String action, Object[] parameters) at Docker.WPF.BackendClient.Version() at Docker.Program.Run(IReadOnlyCollection`1 args)在Docker.Core.Pipe.NamedPipeClient.Send(String action,Object [] parameters)在Docker.WPF.BackendClient.Version()在Docker.Program.Run(IReadOnlyCollection`1 args)

It is giving me below options -它给了我以下选择-

Docker错误

Any help or pointers will really helpful.任何帮助或指示都将真正有帮助。

删除C:\\Users\\UserName\\AppData\\Roaming\\Docker文件夹也解决了我的问题。

Proxy was the culprit in my case:在我的案例中,代理是罪魁祸首:

In the log file in %LOCALAPPDATA%\\Docker ,%LOCALAPPDATA%\\Docker的日志文件中,

[11:43:09.152][GoBackendProcess ][Error ] msg=“while parsing JSON from C:\\Users[USER]\\AppData\\Roaming\\Docker\\settings.json: json: cannot unmarshal bool into Go struct field Content.proxyHttpMode of type string” [11:43:09.152][GoBackendProcess][Error] msg=“从 C:\\Users[USER]\\AppData\\Roaming\\Docker\\settings.json 解析 JSON:json:无法将 bool 解组到 Go 结构字段 Content.proxyHttpMode字符串类型”

Open %APPDATA%\\Docker\\settings.json打开%APPDATA%\\Docker\\settings.json

I removed all settings lines related to proxy , and the service started fine.删除了与 proxy 相关的所有设置行,服务启动正常。

Alternatively, you can delete the following directories:或者,您可以删除以下目录:

%LOCALAPPDATA%\Docker
%APPDATA%\Docker
%APPDATA%\Docker Desktop

Just Remove all files under this paths:只需删除此路径下的所有文件:

C:\Users[USER]\AppData\Local\Docker
C:\Users[USER]\AppData\Roaming\Docker
C:\Users[USER]\AppData\Roaming\Docker Desktop

Once deleted, I didn't have to do anything else, Docker Desktop started booting up as normal.删除后,我不需要做任何其他事情,Docker Desktop 开始正常启动。

** **

Just Delete the files in C:\\Users\\xxxxxxx\\AppData\\Roaming\\Docker fixed it只需删除 C:\\Users\\xxxxxxx\\AppData\\Roaming\\Docker 中的文件即可修复它

It helps me !!!它帮助到我 !!!

** **

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

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