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? #2

Closed
farazBhatti opened this issue Dec 17, 2019 · 4 comments

Comments

@farazBhatti
Copy link

farazBhatti commented Dec 17, 2019

getting above mentioned error after executing this line
sudo docker build -f docker/Dockerfile -t darknet_yolo_gpu:1 --build-arg GPU=1 --build-arg CUDNN=1 --build-arg CUDNN_HALF=0 --build-arg OPENCV=1 --build-arg DOWNLOAD_ALL=1 .
Any ideas? Ive gone through few solutions given online but no result

@nok
Copy link

nok commented Dec 17, 2019

Did you try to restart the Docker daemon with sudo service docker restart?
And which operating system are you using and how did you install Docker on the host machine?

@manishalankala
Copy link

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

it didnot work

@roy6324
Copy link
Member

roy6324 commented Jan 8, 2020

Hello @farazBhatti ,

Please run " systemctl status docker " and check if docker is running.
If it's not active, then try running " systemctl start docker" to see if it works.
If it's active, use " systemctl stop docker " and then " sudo dockerd " to start the daemon manually.

If the issue remains, please provide the output of " docker info ".

@nourazzii
Copy link
Member

Hello @farazBhatti
Please follow the instructions in https://docs.docker.com/get-started/ for a clean docker installation.
We will close this issue as it is not related to our project.

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

6 participants