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
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-composeDocker - Coder v2 main docs
Install Coder with Docker / docker-compose
2 Replies