-
Notifications
You must be signed in to change notification settings - Fork 896
Add a variable to ask for socket in Docker-based example templates #15035
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is what will happen if you try to create a template from the Docker-based starter templates when you don't have a Docker socket, and then you're just stuck.
|
This was previously discussed in #6860 (comment), but it ended in that we still need a valid default value for the docker socket; otherwise, the docker provider refuses to initialize in the planning phase. |
When adding one of the Docker-based starter templates (from/starter-templates) while using an external Docker daemon that does not match the Docker provider's default value (
/var/run/docker.sock
), you will be met by an error message telling you that the Docker socket can't be reached.This also means that the template won't be added to your instance due to the error, and you can't just change that, so you need to clone and edit the example from the repo, and then push it to your Coder instance.
I think we can fix this pretty easily by just adding a
variable
block asking for the socket's path.cc: @matifali
The text was updated successfully, but these errors were encountered: