Linux command
docker-buildx-du 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Show build cache
docker buildx du
Show detailed
docker buildx du --verbose
Show disk usage
docker buildx du --builder [builder_name]
Filter
docker buildx du --filter until=[24h]
Filter
docker buildx du --filter type=[regular]
说明
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.
参数
- --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).
FAQ
What is the docker-buildx-du command used for?
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.
How do I run a basic docker-buildx-du example?
Run `docker buildx du` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --filter _key=value_ do in docker-buildx-du?
Filter output using key-value selectors (e.g., `until=24h`, `type=...`).