Home > Articles > Details

docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.

[Video] Docker Cannot connect to the Docker daemon at unixClick to Watch Video

Question: How do you resolve: "docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?." when trying to start docker on Windows SubSystem?


Please Login to see the rest of the answer
Answer: There is a chance that you tried to run Docker Container without actually starting Docker Engine/Service, to solve this error start the Docker Engine first before running any Docker Containers:

- Type: sudo service start docker #After this command try to run a test Container
- Type: sudo docker run hello-world # You should see the output to the console, if you see the output then you have successfully started Docker Service and able to run a Container. 


If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy