C
Coder.com•2y ago
modrin

Got permission denied while trying to connect to the Docker daemon socket

Hi everyone. I'm trying to test an instance of Coder on Docker Swarm, but the Docker daemon socket is not connecting, because "coder" user is not in the docker group - this is while trying to run coder templates create for swarm
#group_add:
# - "998" # docker group on host
#group_add:
# - "998" # docker group on host
this will not work (because it's not applicable to Swarm instances). I'm thinking if I need to write a custom Dockerfile and add the user there, or should I use a docker socket proxy image for this? I'm not sure which is a more secure solution - ideally I thought it'd be possible to separate our main Docker containers and Coder containers from each other via host user separation or so, but I'm not sure if that's possible. Appreciate any help 🙂 Docs reference - https://coder.com/docs/coder-oss/latest/install/docker#run-coder-with-docker-compose
Docker - Coder v2 main docs
Install Coder with Docker / docker-compose
2 Replies
modrin
modrin•2y ago
Solved using tecnativa/docker-socket-proxy Would be great to know which permissions Coder needs though
Codercord
Codercord•2y ago
Marked the thread as resolved.
Want results from more Discord servers?
Add your server