Skip to content

feat(compose): add docker-in-docker daemon for the agent (main) - #30

Merged
gk-duplo merged 1 commit into
mainfrom
feature/agent-dind-sidecar-main
Oct 7, 2026
Merged

gk-duplo merged 1 commit into
mainfrom
feature/agent-dind-sidecar-main

Conversation

@aboutte

@aboutte aboutte commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Cherry-pick of #29 (which targets dev) onto main, so main gets the agent's Docker-in-Docker daemon without pulling in everything else on dev.

  • 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. Mirrors the dind sidecar in the helpdesk-helm chart.
  • Shares platform_data:/data so docker run -v /data/... paths resolve on the daemon side. /var/lib/docker lives on a dind_storage volume.
  • Agent env: DOCKER_HOST=tcp://127.0.0.1:2375, CCA_ENABLE_DOCKER=true.
  • Docs: added dind to docs/architecture.md, docs/cli-reference.md and logs.sh.

One conflict, in docker-compose.yml: main doesn't have the init-nginx-conf service that sits next to the new block on dev. Resolved by adding only the dind block. The diff against main is the dind change alone.

Test plan

  • docker compose config -q passes on this branch
  • All tests/*.sh on main pass
  • Full stack: ./run.sh, then docker compose exec claude-code-agent docker run --rm hello-world

🤖 Generated with Claude Code

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>
@aboutte
aboutte requested a review from gk-duplo as a code owner October 7, 2026 18:09

@gk-duplo gk-duplo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@gk-duplo
gk-duplo merged commit b66ab02 into main Oct 7, 2026
1 check passed
@aboutte
aboutte deleted the feature/agent-dind-sidecar-main branch October 8, 2026 00:23
@bhati08-duplo bhati08-duplo mentioned this pull request Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants