fix.
This commit is contained in:
@@ -164,11 +164,7 @@ resource "docker_container" "workspace" {
|
|||||||
# Hostname makes the shell more user friendly: coder@my-workspace:~$
|
# Hostname makes the shell more user friendly: coder@my-workspace:~$
|
||||||
hostname = data.coder_workspace.me.name
|
hostname = data.coder_workspace.me.name
|
||||||
# Use the docker gateway if the access URL is 127.0.0.1
|
# Use the docker gateway if the access URL is 127.0.0.1
|
||||||
entrypoint = [
|
entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")]
|
||||||
"sh", "-c", "chown", "-R", "${local.username}:${local.username}", "/home/${local.username}",
|
|
||||||
"&&", "exec",
|
|
||||||
"sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")
|
|
||||||
]
|
|
||||||
env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
|
env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"]
|
||||||
host {
|
host {
|
||||||
host = "host.docker.internal"
|
host = "host.docker.internal"
|
||||||
|
|||||||
Reference in New Issue
Block a user