windowsdockercontainersdocker-enginedocker-daemon

This error may indicate that the docker daemon is not running


I am new to Docker and after writing docker version in cmd

I got this error:

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

Edit: the OS is Windows.


Solution

  • On Linux you should check the daemon status by systemctl status docker.service, then:

    sudo systemctl enable docker.service
    sudo systemctl enable docker.socket
    
    sudo systemctl start docker.socket
    sudo systemctl start docker.service
    

    On Windows you should check its status by the Windows Service Manager.