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
16,467 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
bash: systemctl: command not found

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
2,543 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
4,814 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,707 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