Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Root cause of this error message is only that DOCKER_HOST variable has not been exported to all the users. In my case it was working fine while I was running docker commands as root user but when I tried the same commands from Jenkins, didn't work. To understand this issue in detail let me create such environment and see troubleshooting steps. Docker Host - [root@server106 ~]# hostname server106.example.com Docker Client - [root@server109 ~]# hostname server109.example.com [root@server109 ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES [root@server109 ~]# docker ...
Hello! Welcome to my Technical blog. My Name is Rakesh Kumar and I’ve more than 7 years of experience in Linux and Open Source technologies. If you are looking for technical information about Linux(Server Hardening, Diagnostics & Troubleshooting etc), Ansible, OpenStack Cloud Solution, Containers(K8s/OCP), DevOps, Machine Learning and Nagios Event Monitoring tool.... you have come to the right place. "I believe Learning and earning shouldn't stop", This is my story!