Share feedback
Answers are generated based on the documentation.

docker sandbox create

DescriptionCreate a sandbox for an agent
Usagedocker sandbox create [OPTIONS] AGENT WORKSPACE

Description

Create a sandbox with access to a host workspace for an agent.

Available agents are provided as subcommands. Use "create AGENT --help" for agent-specific options.

Options

OptionDefaultDescription
--nameName for the sandbox (default: -, letters, numbers, hyphens, underscores, periods, plus signs and minus signs only)
--pull-templatemissingTemplate image pull policy: always (always pull from registry), missing (pull only if not cached), never (use only cached images)
-q, --quietSuppress verbose output
-t, --templateContainer image to use for the sandbox (default: agent-specific image)

Examples

Create a Claude sandbox

$ docker sandbox create claude ~/my-project

Create with a custom name

$ docker sandbox create --name my-sandbox claude ~/my-project

Use a custom base image (-t, --template)

--template IMAGE

Specify a custom container image to use as the sandbox base:

$ docker sandbox create --template python:3-alpine claude ~/my-project

By default, each agent uses a pre-configured image.

Create and run immediately

After creating a sandbox, use run to start the agent:

$ docker sandbox create --name my-sandbox claude ~/my-project
$ docker sandbox run my-sandbox

Or use docker sandbox run directly to create and run in one step:

$ docker sandbox run claude ~/my-project

Subcommands

CommandDescription
docker sandbox create cagentCreate a sandbox for cagent
docker sandbox create codexCreate a sandbox for codex
docker sandbox create copilotCreate a sandbox for copilot
docker sandbox create geminiCreate a sandbox for gemini
docker sandbox create kiroCreate a sandbox for kiro
docker sandbox create opencodeCreate a sandbox for opencode
docker sandbox create shellCreate a sandbox for shell