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

87 lines
2.4 KiB
YAML
Generated

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 image cache in ~/.docker/sandboxes/image-cache/
- 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.
Cached image tars will be deleted and will need to be recreated on next use.
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