Docker failed to initialize

Jeet picture Jeet · Jul 6, 2017 · Viewed 9k times · Source

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.

Answer

Jeet picture Jeet · Jul 6, 2017

I did finally solve the problem and the solution was to restart the machine, which was not properly documented in the official site. As per the site -

Install

Double-click InstallDocker.msi to run the installer.

When the installation finishes, Docker starts automatically. The whale in the notification area indicates that Docker is running, and accessible from a terminal. Run

Open a command-line terminal like PowerShell, and try out some Docker commands!

Run docker version to check the version.

Run docker run hello-world to verify that Docker can pull and run images.

However it needs a restart to enable virtualization, simply logging off and login again did not work for me as directed by the wizard. Most of the problems related to docker gets resolved by restarting the docker some of the common problems and the resolutions are as follows

  • Docker not starting in windows or not working properly
    • Change it to Linux containers
  • Make sure that docker is installed on machine
  • Make sure virtualization is enabled and docker starts successfully