-
Notifications
You must be signed in to change notification settings - Fork 18
feat: Add Docker socket mounting support #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: Add Docker socket mounting support #33
Conversation
Updates from fork
0bea793 to
9c36f80
Compare
agentbox
Outdated
| fi | ||
| else | ||
| run_container "$container_name" validated_dirs "$tool" "${cmd_args[@]}" | ||
| run_container "$container_name" validated_dirs ""$docker_mount" "$tool" "${cmd_args[@]}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take a look at the quotes. It should be "$docker_mount" all three times.
9ba7fbe to
bf3fe93
Compare
|
What is the purpose of this feature? Do you want the agent to be able to run docker containers? Do you consider this to be fine from a security perspective? |
|
Our testing infrastructure relies on Testcontainers for integration testing. Therefore the agent must be able to run Docker containers. |
|
And yes docker in docker is a security concern but thats why |
When passing arguments with special shell characters (like ?) to the container, they were being interpreted as glob patterns. Now using printf '%q' to properly escape each argument. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
…ariables Allows .env files to remain mounted and accessible in the container without Docker automatically loading them as environment variables. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Implements time-based rebuild trigger that forces image rebuild when older than 48 hours, ensuring Claude Code and OpenCode stay current without manual intervention. Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Native install is the recommended method and future-proof (npm installation is deprecated). Using stable channel for reliability since image rebuilds less frequently now that Claude auto-updates. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Consistent with Claude Code approach. Native install is the recommended method for both tools. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Removes time-based rebuild logic that forced rebuilds every 48 hours. Now rebuilds only when Dockerfile/entrypoint changes or via explicit --rebuild flag. Uses BUILD_TIMESTAMP build arg to invalidate Docker cache on every build, ensuring fresh installs on rebuild rather than relying on unpredictable auto-update timing. Co-Authored-By: Claude Haiku 4.5 <[email protected]>
Add --docker flag to mount the host's Docker socket into the container, enabling Docker commands inside AgentBox. Includes: - Docker CLI installation in Dockerfile from official repository - Container user added to docker group - Socket detection for both Linux and Docker Desktop on macOS - Automatic group permission handling via --group-add 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]> # Conflicts: # agentbox
bf3fe93 to
22eccae
Compare
Add --docker flag to mount the host's Docker socket into the container, enabling Docker commands inside AgentBox. Includes:
🤖 Generated with Claude Code