No access to built workspace
We use Coder Coder v0.13.2+88bb901 on a Ubuntu 22.04. Machine. Some workspaces (Dockerfiles) work fine but when we use some other dockerfiles like the following:
We are getting the problem shown in the image. The container is running. We can access the container with docker exec -i containernane bash but on the coder webpage we can't access the workspace. Neither ssh or vscode is shown.
Is there something we can do about this? Is it a problem with teraform or our docker? Let me know if you need further information.
![No description](https://cdn.answeroverflow.com/1052238707018706994/Screenshot_2022-12-13_155720.png)
32 Replies
can you show me your template file ?
(the
.tf
)sure
hmm
seems fine to me
i think the container's coder agent is having trouble connecting to your coder instance
could we help it connect?
I'm not sure..
there are likely some steps to debug but I can't find of anything
did you change this line ?
entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")]
you could try setting it to this
entrypoint = ["sh", "-c", replace(coder_agent.dev.init_script, "127.0.0.1", "host.docker.internal")]
we used the standards as far as i know and with others dockerfiles it works. but I can try to change it and try it again.
oh wait, does it not work only with some dockerfiles?
looks like i misread your issue then
is this your complete dockerfile ?
yes. some dockerfiles work, others not
that won't matter then
this is a complete dockerfile that doesn't work (minimal)
ok
hmm
i think it's not liking the fact that the dockerfile is only a
FROM
statement
unsure
can you show me the logs ?we used also a dockerfile with more stuff. but this is the minimal file to reproduce the error.
I will send the logs. one moment
here is the log to the workspace generation
uuuh
this isn't what it shoud output
![No description](https://cdn.answeroverflow.com/1052249532425064478/image.png)