mirror of https://github.com/docker/docs.git
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:
parent
4065fc2c98
commit
14be084edb
|
@ -174,4 +174,16 @@ 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
|
||||
`--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.
|
||||
|
|
Loading…
Reference in New Issue