Skip to content

Commit e92e075

Browse files
authored
Merge pull request #7171 from locker95/locker95-docs-system-prune-build-cache
docs: mention build cache in docker system prune description
2 parents 51780c0 + 951f765 commit e92e075

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎docs/reference/commandline/system_prune.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ Remove unused data
1818
## Description
1919

2020
Remove all unused containers, networks, images (both dangling and unused),
21-
and optionally, volumes.
21+
unused [build cache](https://docs.docker.com/build/cache/), and optionally,
22+
volumes.
23+
24+
Build cache is always eligible for pruning with this command (including BuildKit
25+
cache mounts created with `RUN --mount=type=cache`). Use
26+
[`docker builder prune`](builder_prune.md) if you only want to reclaim build
27+
cache without removing containers, networks, or images.
2228

2329
## Examples
2430

0 commit comments

Comments
 (0)