From f943ac67586e10efe6c8902685601c1a561f6f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20S=C3=B6derberg?= Date: Mon, 20 Oct 2025 15:33:27 +0200 Subject: [PATCH] fix. --- main.tf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/main.tf b/main.tf index ced55c4..381d617 100644 --- a/main.tf +++ b/main.tf @@ -164,11 +164,7 @@ resource "docker_container" "workspace" { # Hostname makes the shell more user friendly: coder@my-workspace:~$ hostname = data.coder_workspace.me.name # Use the docker gateway if the access URL is 127.0.0.1 - entrypoint = [ - "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") - ] + entrypoint = ["sh", "-c", replace(coder_agent.main.init_script, "/localhost|127\\.0\\.0\\.1/", "host.docker.internal")] env = ["CODER_AGENT_TOKEN=${coder_agent.main.token}"] host { host = "host.docker.internal"