Add filtering section on docker system prune (#18519)

* Add filtering section on docker system prune

Docker system prune is allowed for API 1.28+, as shown in the doc https://docs.docker.com/engine/reference/commandline/system_prune/, but this is not shown in the Prune unused objects page.

* Remove disclaimer per suggestion

Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>

---------

Co-authored-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
J. Casalino 2023-10-26 15:49:38 -04:00 committed by GitHub
parent 4065fc2c98
commit 14be084edb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -175,3 +175,15 @@ Are you sure you want to continue? [y/N] y
By default, you are prompted to continue. To bypass the prompt, use the `-f` or By default, you are prompted to continue. To bypass the prompt, use the `-f` or
`--force` flag. `--force` flag.
By default, all unused containers, networks, images (both dangling and unreferenced)
are removed. You can limit the scope using the
`--filter` flag. For instance, the following command removes items older than 24 hours:
```console
$ docker system prune --filter "until=24h"
```
Other filtering expressions are available. See the
[`docker system prune` reference](../engine/reference/commandline/system_prune.md)
for more examples.