Repository navigation
feat(compose): add docker-in-docker daemon for the agent (main) - #30
Merged
Merged
Conversation
Lets the agent container create containers, mirroring the dind sidecar in the helpdesk-helm chart: - New always-on dind service (docker:27-dind, privileged) that joins claude-code-agent's network namespace and binds dockerd to 127.0.0.1:2375 only, so nothing else can reach the daemon - Shares platform_data:/data so `docker run -v /data/...` paths resolve daemon-side; /var/lib/docker on a dind_storage volume - Agent gets DOCKER_HOST and CCA_ENABLE_DOCKER=true - Document the service in architecture.md, cli-reference.md, logs.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-pick of #29 (which targets
dev) ontomain, somaingets the agent's Docker-in-Docker daemon without pulling in everything else ondev.dindservice (docker:27-dind, privileged) that joinsclaude-code-agent's network namespace and bindsdockerdto127.0.0.1:2375only. Mirrors the dind sidecar in the helpdesk-helm chart.platform_data:/datasodocker run -v /data/...paths resolve on the daemon side./var/lib/dockerlives on adind_storagevolume.DOCKER_HOST=tcp://127.0.0.1:2375,CCA_ENABLE_DOCKER=true.dindtodocs/architecture.md,docs/cli-reference.mdandlogs.sh.One conflict, in
docker-compose.yml:maindoesn't have theinit-nginx-confservice that sits next to the new block ondev. Resolved by adding only thedindblock. The diff againstmainis the dind change alone.Test plan
docker compose config -qpasses on this branchtests/*.shonmainpass./run.sh, thendocker compose exec claude-code-agent docker run --rm hello-world🤖 Generated with Claude Code