Files
docker-docs/data/sandbox-cli/docker_sandbox_reset.yaml
David Karlsson 66ff3c700c update sandbox cli ref (#24042)
- **sandboxes: regenerate, vendor cli reference docs**
- **chore: move `docker sandbox create` to a section page**

---------

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2026-01-30 12:53:35 +01:00

85 lines
2.3 KiB
YAML

command: docker sandbox reset
short: Reset all VM sandboxes and clean up state
long: |-
Reset all VM sandboxes and permanently delete all VM data.
This command will:
- Stop all running VMs gracefully (30s timeout)
- Delete all VM state directories in ~/.docker/sandboxes/vm/
- Clear all internal registries
The daemon will continue running with fresh state after reset.
⚠️ WARNING: This is a destructive operation that cannot be undone!
All running agents will be forcefully terminated and their work will be lost.
By default, you will be prompted to confirm (y/N).
Use --force to skip the confirmation prompt.
usage: docker sandbox reset [OPTIONS]
pname: docker sandbox
plink: docker_sandbox.yaml
options:
- option: force
shorthand: f
value_type: bool
default_value: "false"
description: Skip confirmation prompt
details_url: '#force'
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
examples: |-
### Reset with confirmation prompt
```console
$ docker sandbox reset
⚠️ WARNING: This will permanently delete all VM data and stop all running agents!
Are you sure you want to continue? (y/N): y
All VMs reset successfully
```
### Force reset without confirmation (-f, --force) {#force}
Skip the confirmation prompt:
```console
$ docker sandbox reset --force
All VMs reset successfully
```
> [!CAUTION]
> This is a destructive operation that cannot be undone!
> All running agents will be terminated and their work will be lost.
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false