Coder.comC
Coder.comโ€ข4y agoโ€ข
2 replies
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


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
Install Coder with Docker / docker-compose
Docker - Coder v2 main docs
Was this page helpful?