Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: Jotpe on 29 June 2022, 12:27:14

Title: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Post by: Jotpe on 29 June 2022, 12:27:14
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
Title: Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Post by: phoenix_king_rus on 29 June 2022, 12:36:37
Did you install docker-runit and link service to /etc/runit/runsvdir/default? If yes, check logs for docker daemon messages
Title: Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Post by: Jotpe on 29 June 2022, 12:51:28
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.
Title: Re: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Post by: phoenix_king_rus on 29 June 2022, 16:35:28
You need socklog to run in order to gather logs. Then you can find logs in /var/log/socklog/everything/current