docker-buildx-du
Show disk usage of Docker build cache
TLDR
Show build cache disk usage
$ docker buildx du
Show detailed disk usage with all metadata$ docker buildx du --verbose
Show disk usage for a specific builder$ docker buildx du --builder [builder_name]
Filter cache records by age$ docker buildx du --filter until=[24h]
Format output as JSON$ docker buildx du --format json
SYNOPSIS
docker buildx du [options]
DESCRIPTION
docker buildx du displays disk usage information for the build cache of the currently selected (or specified) builder instance. The output lists cache records with their IDs, whether they are reclaimable, their size, and when they were last accessed.This command is useful for understanding how much disk space the build cache consumes before deciding to prune it with docker buildx prune.
PARAMETERS
--filter key=value
Filter output using key-value selectors.--format format
Format output using a Go template or predefined format (e.g., json).--timeout duration
Override default timeout for loading builder status (default: 20s).--verbose
Show detailed output with additional metadata.--builder name
Target a specific builder instance.
CAVEATS
Asterisks in the output indicate mutable records (size may change) or shared storage that overlaps with other resources. The reported sizes may not reflect actual reclaimable space when records are shared between builds.
SEE ALSO
docker-buildx-prune(1), docker-buildx-ls(1), docker-build(1), docker(1)
