Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: adomb on 29 December 2021, 12:24:16

Title: DOCKER, runit, questions
Post by: adomb on 29 December 2021, 12:24:16
Init - runit.
After start of the service and docker run hello-world - i receive a message -
Code: [Select]
ERROR: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied
Code: [Select]
sudo chmod 666 /var/run/docker.sock
this solves the problem.
Should I do this every time after restarting the service or it can be fixed?
my run file
Spoiler (click to show/hide)
Title: Re: DOCKER, runit, questions
Post by: SGOrava on 29 December 2021, 12:28:46
I would say your user should be in "docker" group for it to work.
Title: Re: DOCKER, runit, questions
Post by: adomb on 29 December 2021, 13:17:34
I would say your user should be in "docker" group for it to work.
Code: [Select]
❯ groups fedor
wheel docker fedor
Already in a group - does not help.
upd. heh - > reboot server - all works
So it goes.