Skip to main content
Topic: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. (Read 550 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

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

Good afternoon ladies and gents,

I'm using Artix with runit and just installed Docker, but when I try to pull something, it throws the error:

Code: [Select]
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

How can I start the daemon with runit?

Your sincerely,
Lord Grutmore

Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.

Reply #1
Did you install docker-runit and link service to /etc/runit/runsvdir/default? If yes, check logs for docker daemon messages
ARMtix

Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.

Reply #2
Yes, I installed docker-runit.
Which service am I supposed to link to /etc/runit/runsvdir/default? docker or docker-runit?
docker itself is linked, but the only log for docker (in it's directory) I can find is a directory with the file "run" and a directory "supervise" in it.
Code: [Select]
ls /etc/runit/runsvdir/default/docker/log
     run  supervise

I'm sorry if those are really stupid questions, I am pretty new to Artix and runit, too.

Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.

Reply #3
You need socklog to run in order to gather logs. Then you can find logs in /var/log/socklog/everything/current
ARMtix