| DOCKER-BUILDX-PRUNE(1) | DOCKER-BUILDX-PRUNE(1) |
docker-buildx-prune - Remove build cache
docker buildx prune
Clears the build cache of the selected builder.
You can finely control what cache data is kept using:
<duration> is a duration string, e.g. 24h or
2h30m, with allowable
units of (h)ours, (m)inutes and (s)econds.
<size> is a human-readable memory string, e.g.
128mb, 2gb, etc. Units
are case-insensitive.
-a, --all[=false] Include internal/frontend images
--filter= Provide filter values (e.g., "until=24h")
-f, --force[=false] Do not prompt for confirmation
-h, --help[=false] help for prune
--keep-storage=0 Amount of disk space to keep for cache
--verbose[=false] Provide a more verbose output
--builder="" Override the configured builder instance
### Override the configured builder instance (--builder) {#builder}
Same as [`buildx --builder`](/reference/cli/docker/buildx/#builder).
| Apr 2025 |