n00b question, how to setup CC w/ docker devcontainer?
i've been getting this error:
In the docker devcontainer template, i've added these to main.tf
what am i not doing right to setup CC w/ the devcontainer?
2025-06-02 16:14:33.585 [warn] coderd: GET host=ht9aa1n3gf69c.pit-1.try.coder.app path=/api/v2/workspaceagents/bf1914f8-8288-4779-8bef-3f96bcacf00f/containers proto=HTTP/1.1 remote_addr=fcca::1 start="2025-06-02T16:14:03.562404452Z" workspace_name=workspace agent_name=main workspace_name=testcc response_body="{\"message\":\"Internal error dialing workspace agent.\",\"detail\":\"agent is unreachable\"}\n" requestor_id=eabfa140-e7d9-4977-a1e8-00f9c2811a70 requestor_name=starascendin requestor_email=star.ascendin@gmail.com took=30.022679186s status_code=500 latency_ms=30022 params_workspaceagent=bf1914f8-8288-4779-8bef-3f96bcacf00f params_workspace=c8b42565-2a7f-44bf-80cc-5b37e43b75cd request_id=dc515cdd-09c9-4e88-91c0-817b5389e4322025-06-02 16:14:33.585 [warn] coderd: GET host=ht9aa1n3gf69c.pit-1.try.coder.app path=/api/v2/workspaceagents/bf1914f8-8288-4779-8bef-3f96bcacf00f/containers proto=HTTP/1.1 remote_addr=fcca::1 start="2025-06-02T16:14:03.562404452Z" workspace_name=workspace agent_name=main workspace_name=testcc response_body="{\"message\":\"Internal error dialing workspace agent.\",\"detail\":\"agent is unreachable\"}\n" requestor_id=eabfa140-e7d9-4977-a1e8-00f9c2811a70 requestor_name=starascendin requestor_email=star.ascendin@gmail.com took=30.022679186s status_code=500 latency_ms=30022 params_workspaceagent=bf1914f8-8288-4779-8bef-3f96bcacf00f params_workspace=c8b42565-2a7f-44bf-80cc-5b37e43b75cd request_id=dc515cdd-09c9-4e88-91c0-817b5389e432In the docker devcontainer template, i've added these to main.tf
module "coder-login" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/coder-login/coder"
version = "1.0.15"
agent_id = coder_agent.main.id
}
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "1.2.1"
agent_id = coder_agent.main.id
folder = "/home/coder"
install_claude_code = true
claude_code_version = "latest"
# Icon is not available in Coder v2.20 and below, so we'll use a custom icon URL
icon = "https://registry.npmmirror.com/@lobehub/icons-static-png/1.24.0/files/dark/claude-color.png"
}module "coder-login" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/coder-login/coder"
version = "1.0.15"
agent_id = coder_agent.main.id
}
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "1.2.1"
agent_id = coder_agent.main.id
folder = "/home/coder"
install_claude_code = true
claude_code_version = "latest"
# Icon is not available in Coder v2.20 and below, so we'll use a custom icon URL
icon = "https://registry.npmmirror.com/@lobehub/icons-static-png/1.24.0/files/dark/claude-color.png"
}what am i not doing right to setup CC w/ the devcontainer?
