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 ""
- Remove the least recently used cache records until the cache size is below a specific limit:
docker buildx prune --max-used-space
- Remove the least recently used cache records until a specific amount of free disk space is available:
docker buildx prune --reserved-space
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
