commands.sh

docker buildx prune

all

Remove the build cache.

More info →

Examples (4)

Remove build cache for currently active builder

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
made by @shridhargupta | data from tldr-pages