Files
docker-docs/data/cli/sandbox/docker_sandbox_create_codex.yaml
2026-02-24 08:01:08 +01:00

61 lines
1.6 KiB
YAML

command: docker sandbox create codex
short: Create a sandbox for codex
long: |-
Create a sandbox with access to a host workspace for codex.
The workspace path is required and will be exposed inside the sandbox at the same path as on the host.
Additional workspaces can be provided as extra arguments. Append ":ro" to mount them read-only.
Use 'docker sandbox run SANDBOX' to start codex after creation.
usage: docker sandbox create codex WORKSPACE [EXTRA_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
examples: |-
### Create a Codex sandbox in the current directory
```console
$ docker sandbox create codex .
```
### Create with an absolute path
```console
$ docker sandbox create codex /home/user/my-project
```
### Create and then run
```console
$ docker sandbox create --name my-codex codex ~/my-project
$ docker sandbox run my-codex
```
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false