dockerhyper-vdocker-engine

Why am I getting error on running docker ps command


I have installed docker version 20.10.7 on my Windows 10 machine. But when I run docker ps command I am getting the following error:

error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json": open //./pipe/docker_engine: The system cannot find the file specified.

What can be the reason for this?


Solution

  • It might be possible that docker desktop is not running in the background.

    Start > Docker Desktop (open).

    Edit: The following environment properties need to be set:

     set DOCKER_CERT_PATH=%USERPROFILE%\.docker\machine\machines\default
     set DOCKER_HOST=tcp://192.168.99.100:2376
     set DOCKER_MACHINE_NAME=default
     set DOCKER_TLS_VERIFY=1