Docker error
Error: Error pinging Docker server: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
15 Replies
you have to run coder server as
coder:998
How do I do that?
actually, you can probably just do
usermod -aG coder docker
since you're not running coder in dockerI am getting user 'docker' does not exist
swap coder and docker
usermod -aG docker coder
I did that and tried to create the docker template
![No description](https://cdn.answeroverflow.com/1070690011810377848/image.png)
what user are you running the command as
wait no
i don't know i'll take a look later
Root 😊
Anyone know the fix? haha I am soo lost
I think you should add
Group=docker
to your service file (or replace existing group definition)
docker and coder run on the same machine correct?Yes
yeah that shoud work then
Where is the service file?
the path ending in
.service
when running systemctl status coder
Thank you this fixed it.