Home Software Engineering [Solved] Can not hook up with the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon operating?

[Solved] Can not hook up with the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon operating?

0

[ad_1]

Should you get the next error when making an attempt to run a Docker container:

Can not hook up with the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon operating?

Then you may resolve it by operating the next:

systemctl begin docker

If this doesn’t work due to a root consumer subject, then you are able to do the next first:

gpasswd -a $USER docker

Further points?

Subject 1

You probably have tried the above, and get this error:

Failed to start out docker.service: Unit docker.service is masked.

Then you may remedy it as follows:

systemctl unmask docker.service
systemctl unmask docker.socket
systemctl begin docker.service

Subject 2

You’ll be able to nonetheless can’t get round this, then try to use the docker daemon service itself:

sudo dockerd

[ad_2]