Mega Menu

Wednesday, January 08, 2020

Docker - Error During Connect on Windows

Below is one common error seen while trying to run docker client on Windows.

Error -
docker run hello-world
docker: error during connect: Post http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.40/containers/create: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running.
See 'docker run --help'.


Possible Rootcause - Not have enough privileges to execute docker scripts through the CLI (Powershell or command prompt, etc.). The bold text in the error message also indicates this.

Solution - 
1. Open the CLI as an administrator i.e. Run as Administrator
or 
2. if using command prompt, execute the below script to open an Admin Window
        cmd.exe npm

No comments:

Post a Comment