diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-01-27 09:42:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 09:42:50 -0500 |
commit | 9e7e91c13e32fc5897b336dbed8df1fd060a3ac4 (patch) | |
tree | a77d038a1d6e3fc461718d5564f7771dc4d3139e /docs/source/markdown/podman-volume-prune.1.md | |
parent | 5b01dab618fc287df4e6c41fa88c4a64d31fa3f3 (diff) | |
parent | 24dc02064e6203958136d8ea3a354fc1329cb7b0 (diff) | |
download | podman-9e7e91c13e32fc5897b336dbed8df1fd060a3ac4.tar.gz podman-9e7e91c13e32fc5897b336dbed8df1fd060a3ac4.tar.bz2 podman-9e7e91c13e32fc5897b336dbed8df1fd060a3ac4.zip |
Merge pull request #13034 from rhatdan/docs
CI:DOCS: Unify podman prune filter description: volumes, networks, system
Diffstat (limited to 'docs/source/markdown/podman-volume-prune.1.md')
-rw-r--r-- | docs/source/markdown/podman-volume-prune.1.md | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/docs/source/markdown/podman-volume-prune.1.md b/docs/source/markdown/podman-volume-prune.1.md index 012567957..2028e42f2 100644 --- a/docs/source/markdown/podman-volume-prune.1.md +++ b/docs/source/markdown/podman-volume-prune.1.md @@ -21,12 +21,20 @@ Do not prompt for confirmation. #### **--filter** -Filter volumes to be pruned. Volumes can be filtered by the following attributes: +Provide filter values. -| **Filter** | **Description** | -| ---------- | ------------------------------------------------------------------------------------- | -| label | [Key] or [Key=Value] Label assigned to a volume | -| until | Only remove volumes created before given timestamp | +The *filters* argument format is of `key=value`. If there is more than one *filter*, then pass multiple OPTIONS: **--filter** *foo=bar* **--filter** *bif=baz*. + +Supported filters: + +| Filter | Description | +| :----------------: | --------------------------------------------------------------------------- | +| *label* | Only remove volumes, with (or without, in the case of label!=[...] is used) the specified labels. | +| *until* | Only remove volumes created before given timestamp. | + +The `label` *filter* accepts two formats. One is the `label`=*key* or `label`=*key*=*value*, which removes volumes with the specified labels. The other format is the `label!`=*key* or `label!`=*key*=*value*, which removes volumes without the specified labels. + +The `until` *filter* can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the machine’s time. #### **--help** |