LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

docker-buildx-du

Show disk usage of Docker build cache

TLDR

Show build cache disk usage
$ docker buildx du
copy
Show detailed disk usage with all metadata
$ docker buildx du --verbose
copy
Show disk usage for a specific builder
$ docker buildx du --builder [builder_name]
copy
Filter cache records by age
$ docker buildx du --filter until=[24h]
copy
Filter cache records by type
$ docker buildx du --filter type=[regular]
copy

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 (e.g., `until=24h`, `type=...`).
--verbose
Show detailed output with additional metadata.
--builder name
Target a specific builder instance (overrides the default).

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

Copied to clipboard
Kai