Merge pull request #7171 from locker95/locker95-docs-system-prune-build-cache

docs: mention build cache in docker system prune description
This commit is contained in:
Sebastiaan van Stijn
2026-09-03 21:30:52 +02:00
committed by GitHub
+7 -1
View File
@@ -18,7 +18,13 @@ Remove unused data
## Description
Remove all unused containers, networks, images (both dangling and unused),
and optionally, volumes.
unused [build cache](https://docs.docker.com/build/cache/), and optionally,
volumes.
Build cache is always eligible for pruning with this command (including BuildKit
cache mounts created with `RUN --mount=type=cache`). Use
[`docker builder prune`](builder_prune.md) if you only want to reclaim build
cache without removing containers, networks, or images.
## Examples