Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 of 3 tasks
AllieUbisse opened this issue May 19, 2020 · 4 comments

Comments

@AllieUbisse
Copy link

AllieUbisse commented May 19, 2020

  • This is a bug report
  • This is a feature request
  • I searched existing issues before opening this one

Expected behavior

Actual behavior

Steps to reproduce the behavior

Output of docker version:

Docker version 19.03.8, build afacb8b7f0

Output of docker info:

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

Additional environment details (AWS, VirtualBox, physical, etc.)

physical

@vitaliikapliuk
Copy link

Try with sudo

@AllieUbisse
Copy link
Author

@vitaliikapliuk
Running on WSL
-----OUT-PUT------

 sudo service docker status                                                                                          
 * Docker is not running

 sudo service docker start                                                                                         
 * Starting Docker: docker                                                                                                                   
[ OK ] 

 sudo service docker status                                                                                        
 * Docker is running

  sudo docker run hello-world   
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

@fjwbarnard
Copy link

fjwbarnard commented May 21, 2020

Docker does not work on WSL out of the box. See:

WSL2 supports it though as far as I know

@thaJeztah
Copy link
Member

Yes, WSL is not supported as it does not provide all the kernel facilities needed to run Docker. Current versions of Docker Desktop is the recommended way to run Docker on Windows, and can use WSL2 to run docker (see https://docs.docker.com/docker-for-windows/wsl/)

closing this ticket because of the above, but feel free to continue the conversation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants