n00b question, how to setup CC w/ docker devcontainer?

i've been getting this error:
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-817b5389e432
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-817b5389e432
In 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?
6 Replies
Codercord
Codercord5mo ago
Codercord
Codercord5mo ago
<#1379131788382834789>
Category
Help needed
Product
Coder (v2)
Platform
N/A
Logs
Please post any relevant logs/error messages.
What operating system are you running Coder (v2) on?
Phorcys
Phorcys5mo ago
this error shouldn't be related and should also go away after some time does your template actually work properly though?
bryan_3mavericks
bryan_3mavericksOP5mo ago
hmm i think it worked, it just took a long time to have it up and running. I'll test out some more on this thanks!
Phorcys
Phorcys5mo ago
sounds good! let us know if you need anything else :-)
Codercord
Codercord5mo ago
@Phorcys closed the thread.

Did you find this page helpful?