Commit Graph

9 Commits

Author SHA1 Message Date
Muhsinun Chowdhury
0a2a7fbcd1 fix(sandbox): improve DinD detection and add security comment
- Change DinD detection from AND to OR: require both env vars or neither
  (partial config would cause confusing mount failures)
- Add comment explaining why root user is required for Docker socket access

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:47:50 -05:00
Muhsinun Chowdhury
51decc6535 feat(sandbox): add Docker-in-Docker path remapping for browser sandboxes
When the gateway runs inside a Docker container and creates sandbox
containers, volume mount paths need to be host paths, not container paths.

Changes:
- Add remapPathForDinD() function to remap container paths to host paths
- Add CLAWDBOT_SANDBOX_HOST_CONFIG_DIR and CLAWDBOT_SANDBOX_HOST_WORKSPACE_DIR
  environment variables to docker-compose.yml
- Use path remapping in both sandbox container and browser sandbox creation
- Add Docker CLI to gateway Dockerfile for Docker-in-Docker support

The path remapping is a no-op when the environment variables are not set,
so bare metal installations are unaffected.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:40:28 -05:00
Muhsinun Chowdhury
fc0fca5108 chore(docker): add Docker socket mount for sandbox containers
When running gateway in Docker, it needs access to the Docker socket
to create and manage sandbox browser containers on the host.

Changes:
- Add user: root for Docker socket permissions
- Mount /var/run/docker.sock into gateway container

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 18:40:28 -05:00
Peter Steinberger
6d16a658e5 refactor: rename clawdbot to moltbot with legacy compat 2026-01-27 12:21:02 +00:00
Peter Steinberger
b697374ce5 fix: update docker gateway command 2026-01-24 03:24:28 +00:00
Peter Steinberger
613d866296 chore(docker): pass claude web session env 2026-01-09 16:07:40 +00:00
Pratham Dubey
742850adae Docker: add init: true to clawdbot-cli service (fixes #462) 2026-01-08 07:50:06 +00:00
Peter Steinberger
246adaa119 chore: rename project to clawdbot 2026-01-04 14:38:51 +00:00
ddyo
8d4c6d41ab Docker: add root-level setup 2026-01-02 13:53:06 +02:00