Permission denied creating first template
I know its been posted before but I cant find the solution.
My friend got Coder working on our Ubuntu 22.04 with docker-compose.
The error is:
I tried creating a "coder" user and adding it to the docker group without success. I restarted the Coder container, do I need to restart Docker itself too?
Solution:Jump to solution
uncomment the group_add line and change 998 to the GID of your Docker group
15 Replies
<#1108447542221471744>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
FIXED!
For others, this did the trick for me
โUse 660 instead of 666 โ
I just tried this for myself and no dice. Is there a chance you did some other stuff?
There might be, but what error do you get?
Pretty much what you got but managed to figure out it's was a typo in the docker compose file. I type 997 instead of 998 for the docker group. All sorted. Can't believe I spent a few hours on something like that ๐
Thank you!
I'm glad my update helped you, I hope you didn't use hours on this error like us? ๐
No i just searched for permission denied here in help xD
probably saved me that exact time haha
oh no
that is really bad
in terms of security, this is giving access to the Docker socket to all the users of your system
you should revert the permissions back to 660 and instead edit the Docker Compose file for Coder to make it run within the Docker group
At that time I didn't care much and I no longer use Docker ๐
Updated my fix ๐
GitHub
coder/docker-compose.yaml at main ยท coder/coder
Provision remote development environments via Terraform - coder/coder
Solution
uncomment the group_add line and change 998 to the GID of your Docker group
@Moondog @Jackson, you will also want to revert this permission change as it is very unsafe
Nice spotted, sorry for the inconvenience guys ๐