Docker failed to initialize

Viewed 54477

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. But when I tried to start the docker it says -

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)

It is giving me below options -

Docker Error

Any help or pointers will really helpful.

7 Answers

Just need to delete the files in C:\Users\xxxxxxx\AppData\Roaming\Docker fixed it

Deleting C:\Users\UserName\AppData\Roaming\Docker folder also resolved my issue.

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.

Proxy was the culprit in my case:

In the log file in %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”

Open %APPDATA%\Docker\settings.json

I removed all settings lines related to proxy, and the service started fine.

Alternatively, you can delete the following directories:

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

**

Just Delete the files in C:\Users\xxxxxxx\AppData\Roaming\Docker fixed it

It helps me !!!

**

I had a similar issues generated by the following error described in the C:\Users\<myuser>\AppData\Local\Docker\log.txt:

[12:35:12.988][GUI               ][Warning] Failed to configure docker scan: System.UnauthorizedAccessException: O acesso ao caminho 'C:\Users\<myuser>\.docker\scan\config.json' foi negado.
   em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

To solve that I just dropped the folder located at C:\Users\<myuser>\.docker and run the Docker Desktop again.

Related