buildx_du
Report BuildKit cache disk usage as a list of records. Use it to identify cache size and make pruning decisions.
Instructions
Report BuildKit cache disk usage as a list of records.
A large cache can easily generate more output than MAX_CLI_OUTPUT_BYTES; if that happens the
captured stdout is truncated and this tool drops the final (partial) record before parsing.
For an exhaustive accounting on a busy builder, run docker buildx du --format '{{json .}}'
on the host directly. Reclaim the cache with buildx_prune (system_df covers daemon-side
disk, not builder cache).
Raises RuntimeError if the CLI call fails.
args: builder - Override the active builder
returns: list - One dict per cache record (parsed from --format '{{json .}}')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| builder | No |