Docker の検索・質問

sbx df

マークダウン参照
内容説明Show runtime disk 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

オプションデフォルト内容説明
--formatOutput format: table, json or yaml
--jsonOutput in JSON format
-v, --verboseShow individual images, containers, and volumes, plus the cache summary, in table output. JSON and YAML always include details.

Global options

オプションデフォルト内容説明
--cloudDispatch 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, --debugEnable debug logging
--no-inputNever 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