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



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?

Solution: 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. 

Docker Docker Error Docker Docker published
Was this page helpful?
Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback

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

Your Session is Ending
Login to Continue


© 2021 - ErnesTech - Privacy