-
Notifications
You must be signed in to change notification settings - Fork 891
Agent hangs on 'connecting' when deploying using local docker #3513
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
@AadamZ5 the container is attempting to dial You'll have to use the Docker host gateway to access port 3000 on your host machine from inside the container: coder/examples/templates/docker/main.tf Lines 76 to 83 in 2306d2c
|
@kylecarbs I agree. However, is this something I have to manually edit in a template? How come the default docker template does not connect to the Coder instance correctly? |
Agreed. I'll fix this up! |
Thanks for reporting, at one point I think Coder always identified localhost as 127.0.0.1 in the access URL, but this behavior must have changed. |
coder/terraform-provider-coder#37 Once this is merged, we can fix up the template to no longer replace the host π |
That change wasn't sufficient, but this one will be! coder/terraform-provider-coder#40 |
When deploying with the docker template, it seems the container can not download the required dependencies.
Container log:
This repeats and it can never reach the host network. Running on
linux x86_64
I can reach the host address from outside of the container (on the host itself) and the url path gives me a file to download. Seems like the container can't reach host.
> coder version Coder v0.8.5+95f26f7 Wed Aug 10 16:30:46 UTC 2022 https://github.com/coder/coder/commit/95f26f74b6ff6be1ffe42fceb21f70219889dc99
The text was updated successfully, but these errors were encountered: