Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

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

After writing article How to install Docker on Linux I tested it with command docker version, everything was good but no docker engine related information was there and on  the last line I saw error Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?, with this error It was not allow run or execute any docker container.

Install-docker-version-on-centos-client-docker-engine-community-cannot-connect-to-the-docker-daemon-at-unix-var-run-docker.sock-Is-the-docker-daemon-running-1024x219.png

By reading the error and to diagnos the issue, I checked docker service with below command, the Active status was showing inactive (dead).

sudo systemctl status docker

docker-sudo-systemctl-status-docker-application-container-engine-docker.service-inactive-dead-loaded-docker-service-disabled-solved-issue-1024x282

I started the docker service, and enabled it so after reboot service will autostart. Checked the status of service it was active and running.

sudo systemctl start docker
sudo systemctl enable docker
sudo systemctl status docker

sudo-systemctl-start-docker-sudo-systemctl-enable-docker-created-symlink-for-docker.service-sudo-systemctl-status-docker-community-dockerd-1024x374.png

I rechecked docker version again this time everything was good and Docker Engine related information was on the screen. In next article I will show how to use proxy server on docker.

docker-community-version-docker-engine-gitcommit-working-service-started-os-arch-linux-centos-docker-init-server-client.png

USEFUL ARTICLES
How to install Docker on Linux
How to install Ansible on Linux for vSphere configuration
PART 1 : BUILDING AND BUYING GUIDE IDEAS FOR VMWARE LAB
PART 2 : BUILDING AND HARDWARE BUYING GUIDE IDEAS FOR VMWARE LAB
PART 3 : MY VSPHERE LAB CONFIGURATION ON VMWARE WORKSTATION

Go Back

Comment

Blog Search

Page Views

12086173

Follow me on Blogarama