Skip to main content
Topic: DOCKER, runit, questions (Read 952 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

DOCKER, runit, questions

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)

Re: DOCKER, runit, questions

Reply #1
I would say your user should be in "docker" group for it to work.

Re: DOCKER, runit, questions

Reply #2
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.