docker-buildx-prune
Remove the build cache. tldr-pages
On several platforms
Several platforms
Remove build cache for currently active builder
docker buildx pruneIdentifyRemove cache records based on a specific filter
docker buildx prune --filter "type=source.local"Identify--filterProvide filter values Docker Buildx referenceRemove the least recently used cache records until the cache size is below a specific limit
docker buildx prune --max-used-space 128mbIdentify--max-used-spaceMaximum amount of disk space allowed to keep for cache Docker Buildx referenceRemove the least recently used cache records until a specific amount of free disk space is available
docker buildx prune --reserved-space 2gbIdentify--reserved-spaceAmount of disk space always allowed to keep for cache Docker Buildx reference