workspace for docker template running in hosts per developer

Hi!, I'm researching this tool for the developer team and I have some questions, maybe I'm misunderstanding how to use Coder. I've being doing some POCs with the docker template, and I thought we could have for some project one template, that will be shared among the developers assigned to that project. So I was thinking to make the template run the workspace in different docker hosts using the username of the owner as part of the hostname. I realized that when you update the template to Coder server, Terraform connects to the docker host, so I'm not sure if this is the correct approach, maybe I need to use Kubernetes template instead. What do you think? Thanks in advance, this really looks to be a great tool for developers!
Example of configuration docker/main.tf
4 Replies
Phorcys
Phorcys3y ago
I'm not sure I understand the issue you want to use different docker hosts for each person? oh you're asking if this would do it? i mean if you do have a docker host for each of your users, sure you could also prompt the users for the docker host they want to use, that should also work just fine
maxifelix
maxifelix3y ago
Thats the point, I want to use different docker host for each person. But Im not sure if when the admin updates the template to the Coder server, Terraform needs to connect to all docker hosts to update something... Because when I did my POC and updated the template with the snippet above, it tried to connect to "default.docker-host.com" as it was running the template with username default Thanks
Phorcys
Phorcys3y ago
it only connects to the docker host on start AFAIK, and it shouldn't do anything on template update either as there's nothing running it until users update their workspaces if it's good for you, you can use /resolve to resolve your thread
maxifelix
maxifelix3y ago
It's ok, thanks.
Want results from more Discord servers?
Add your server