| Description | Show runtime disk usage |
|---|---|
| Usage | sbx df [flags] |
Description
Show disk usage for local images, containers, managed volumes, and the kit registry cache.
Image totals include stored blobs and snapshots, count shared layers once, and include retained data without tags. Active images and volumes are referenced by a container, including stopped containers. Active containers are running or paused. The kit registry cache total includes registry metadata. Its reclaimable estimate counts unused blobs and expired uploads, but not registry metadata.
Reclaimable space is an estimate for removing unused resources of each type, not the space that "sbx prune" alone removes. Detached writable layers are included in the container total. Shared filesystem blocks, leases, and concurrent activity can reduce or delay space recovered. Host bind mounts, logs, and other caches (including Docker build caches) are excluded. Unavailable measurements show as unknown. Cloud disk usage is not supported.
Options
| Option | Default | Description |
|---|---|---|
--format | Output format: table, json or yaml | |
--json | Output in JSON format | |
-v, --verbose | Show individual images, containers, and volumes, plus the cache summary, in table output. JSON and YAML always include details. |
Global options
| Option | Default | Description |
|---|---|---|
--cloud | Dispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list) | |
-D, --debug | Enable debug logging | |
--no-input | Never prompt; commands that need an answer fail with the command to run instead |
Examples
# Show a disk usage summary
sbx df
# Show individual images, containers, and volumes, plus the cache summary
sbx df --verbose
# Output in JSON format
sbx df --format json