Cannot connect to the Docker daemon at unix var run docker sock Is the docker daemon running

+1 vote

Hi Team,

I am trying to add one manager in Docker swarm. But it is showing me the below error.

$ docker swarm join --token xxxxxxxxxxxxxxxxxxxxx33m7g3xfg8o0gyl1rgkxkliq8kq2ov-bf2inz84bhwbdzp9ddvxrbfoi 172.31.11.98:2377
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Dec 24, 2020 in Docker by akhtar
• 38,260 points
15,472 views

1 answer to this question.

+1 vote
Best answer

Hi@akhtar,

It seems the docker service is not running in your system. You need to start the docker service using the below command.

$ systemctl start docker
answered Dec 24, 2020 by MD
• 95,460 points

selected Dec 30, 2020 by akhtar

Related Questions In Docker

0 votes
0 answers
0 votes
1 answer

Docker is unable to connect to docker daemon

The problem here maybe is that you are not ...READ MORE

answered Sep 4, 2018 in Docker by Damon Salvatore
• 5,980 points
1,581 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 10,620 points
3,485 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
2,687 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP