Skip to content

cagent run --sandbox#1904

Merged
dgageot merged 2 commits intodocker:mainfrom
dgageot:local-sandbox
Mar 5, 2026
Merged

cagent run --sandbox#1904
dgageot merged 2 commits intodocker:mainfrom
dgageot:local-sandbox

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Mar 3, 2026

Features:

  • Creates a docker sandbox to run the agent
  • Resolves aliases pre run in the sandbox to know which agent file to mount
  • Dynamically pass env vars, such as MCP secrets, from our env providers
  • Support the gateway and DD token based auth
  • Mount user's settings (read-only)

@dgageot dgageot force-pushed the local-sandbox branch 2 times, most recently from 524b6a0 to 0830749 Compare March 4, 2026 15:05
@dgageot dgageot changed the title [WIP] cagent run --sandbox cagent run --sandbox Mar 4, 2026
@dgageot dgageot marked this pull request as ready for review March 4, 2026 15:05
@dgageot dgageot requested a review from a team as a code owner March 4, 2026 15:05
@docker docker deleted a comment from docker-agent bot Mar 4, 2026
@docker docker deleted a comment from docker-agent bot Mar 4, 2026
@docker docker deleted a comment from docker-agent bot Mar 4, 2026
rumpl
rumpl previously approved these changes Mar 5, 2026
dgageot added 2 commits March 5, 2026 14:26
Signed-off-by: David Gageot <david.gageot@docker.com>
When --sandbox is passed to 'cagent run', the command delegates to
'docker sandbox run cagent' which launches cagent inside an isolated
microVM. The original arguments are forwarded after stripping --sandbox
and the 'run' subcommand (since the sandbox agent type already invokes
'cagent run' internally).

A pre-flight check produces clear error messages when Docker is not
installed or when Docker Desktop lacks sandbox support.

Assisted-By: cagent
@dgageot
Copy link
Member Author

dgageot commented Mar 5, 2026

@rumpl I had to rebase

@dgageot dgageot merged commit 7ad8eee into docker:main Mar 5, 2026
5 checks passed
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.

3 participants