Files
tldr/pages/common/docker-buildx-prune.md
T
mCaballero1224 74689ae118 docker-buildx-{du, ls, prune, rm, version}: add page (#21319)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
Co-authored-by: Harshavardhan <harshath3018@gmail.com>
2026-04-01 09:59:18 +07:00

613 B

docker buildx prune

Remove the build cache. More information: https://docs.docker.com/reference/cli/docker/buildx/prune/.

  • Remove build cache for currently active builder:

docker buildx prune

  • Remove cache records based on a specific filter:

docker buildx prune --filter "{{type=source.local}}"

  • Remove the least recently used cache records until the cache size is below a specific limit:

docker buildx prune --max-used-space {{128mb}}

  • Remove the least recently used cache records until a specific amount of free disk space is available:

docker buildx prune --reserved-space {{2gb}}