docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
Hi,
when trying to install Graphite component using docker I faced this error:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
when trying to install Graphite component using docker I faced this error:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
I was bit struggling to understand what does it mean,
apparently it's not a permission issue or any kind of other OS issues
it's just because I've reinstalled docker on unclean old installation of it
the solution here is so simple:
restart docker service and re-run the component installation
[root@VerticaNode01 ~]# service docker stop
Redirecting to /bin/systemctl stop docker.service
You have new mail in /var/spool/mail/root
[root@VerticaNode01 ~]# service docker start
Redirecting to /bin/systemctl start docker.service
[root@VerticaNode01 ~]#
[root@VerticaNode01 ~]#
[root@VerticaNode01 ~]# docker run -d --name graphite --restart=always -p 80:80 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 graphiteapp/graphite-statsd
Unable to find image 'graphiteapp/graphite-statsd:latest' locally
latest: Pulling from graphiteapp/graphite-statsd
169185f82c45: Already exists
1cc33baf7a2e: Already exists
01d19f4f4984: Pull complete
5bdb248cffcb: Pull complete
Comments
Post a Comment