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,170 points
4,051 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,180 points

selected Dec 30, 2020 by akhtar

Related Questions In Docker

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
495 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,550 points
1,914 views
0 votes
1 answer

Docker can't connect to docker daemon

The Post-installation steps for Linux documentation reveals the following ...READ MORE

answered Jul 18, 2018 in Docker by Kalgi
• 2,680 points
448 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,120 points
1,150 views
0 votes
1 answer