Docker Community Forums

Share and learn in the Docker community.

An error occurred trying to connect


(Collinsauve) #1

Expected behavior

docker ps should list the running containers

Actual behavior

Received this error:

An error occurred trying to connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.23/containers/json: open //./pipe/docker_engine: The system cannot find the file specified.

Information

Every once in a while after a restart, I cannot use docker. It seems as though I need the docker daemon running, as if I run that manually in a terminal myself I can then connect.

Should docker daemon be installed as a Windows Service?

Steps to reproduce the behavior

Restart Windows


(Michael Friis) #2

When this happens, is Docker for Windows running in the systray? Perhaps try restarting Docker for Windows if the problem re-occurs.


(Gavvvr) #3

Same for me. I just have fresh install of Docker (without restart) and it shows the same error in cmd.exe. It only works as supposed using Docker Quickstart Terminal


(Collinsauve) #4

Re-running Docker for Windows fixed it.