cli: docker sandboxes v0.10.1

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
David Karlsson
2026-02-02 16:37:13 +01:00
parent 53aa093915
commit bed26cad03
6 changed files with 105 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ cname:
- docker sandbox reset
- docker sandbox rm
- docker sandbox run
- docker sandbox save
- docker sandbox stop
- docker sandbox version
clink:
@@ -22,6 +23,7 @@ clink:
- docker_sandbox_reset.yaml
- docker_sandbox_rm.yaml
- docker_sandbox_run.yaml
- docker_sandbox_save.yaml
- docker_sandbox_stop.yaml
- docker_sandbox_version.yaml
options:

View File

@@ -0,0 +1,40 @@
command: docker sandbox create copilot
short: Create a sandbox for copilot
long: |-
Create a sandbox with access to a host workspace for copilot.
The workspace path is required and will be exposed inside the sandbox at the same path as on the host.
Use 'docker sandbox run SANDBOX' to start copilot after creation.
usage: docker sandbox create copilot WORKSPACE
pname: docker sandbox create
plink: docker_sandbox_create.yaml
inherited_options:
- option: debug
shorthand: D
value_type: bool
default_value: "false"
description: Enable debug logging
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
- option: socket
value_type: string
description: |
Connect to daemon at specific socket path (for development/debugging)
deprecated: false
hidden: true
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false

View File

@@ -4,16 +4,6 @@ long: |-
Run an agent in a sandbox. Create the sandbox if it does not exist.
Pass agent arguments after the "--" separator.
Examples:
# Create and run a sandbox with claude in current directory
docker sandbox run claude .
# Run an existing sandbox
docker sandbox run existing-sandbox
# Run a sandbox with agent arguments
docker sandbox run claude . -- -p "What version are you running?"
usage: docker sandbox run SANDBOX [-- AGENT_ARGS...] | AGENT WORKSPACE [-- AGENT_ARGS...]
pname: docker sandbox
plink: docker_sandbox.yaml

View File

@@ -0,0 +1,51 @@
command: docker sandbox save
short: Save a snapshot of the sandbox as a template
long: |-
Save a snapshot of the sandbox as a template.
By default, the image is loaded into the host's Docker daemon (requires Docker to be running).
Use --output to save the image to a tar file instead.
usage: docker sandbox save SANDBOX TAG
pname: docker sandbox
plink: docker_sandbox.yaml
options:
- option: output
shorthand: o
value_type: string
description: |
Save image to specified tar file instead of loading into host Docker
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
inherited_options:
- option: debug
shorthand: D
value_type: bool
default_value: "false"
description: Enable debug logging
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
- option: socket
value_type: string
description: |
Connect to daemon at specific socket path (for development/debugging)
deprecated: false
hidden: true
experimental: false
experimentalcli: false
kubernetes: false
swarm: false
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false