mirror of
https://github.com/containers/podman.git
synced 2025-10-28 03:45:54 +08:00
This change adds support for the `--filter` / `?filters` arguments on
the `podman volume prune` subcommand.
* Adds ParseFilterArgumentsIntoFilters helper for consistent
Filter string slice handling
* Adds `--filter` support to podman volume prune cli
* Adds `?filters...` support to podman volume prune api
* Updates apiv2 / e2e tests
Closes #8672
Signed-off-by: Baron Lenardson <lenardson.baron@gmail.com>
53 lines
925 B
Markdown
53 lines
925 B
Markdown
% podman-volume-prune(1)
|
|
|
|
## NAME
|
|
podman\-volume\-prune - Remove all unused volumes
|
|
|
|
## SYNOPSIS
|
|
**podman volume prune** [*options*]
|
|
|
|
## DESCRIPTION
|
|
|
|
Removes unused volumes. By default all unused volumes will be removed, the **--filter** flag can
|
|
be used to filter specific volumes. You will be prompted to confirm the removal of all the
|
|
unused volumes. To bypass the confirmation, use the **--force** flag.
|
|
|
|
|
|
## OPTIONS
|
|
|
|
#### **--force**, **-f**
|
|
|
|
Do not prompt for confirmation.
|
|
|
|
#### **--filter**
|
|
|
|
Filter volumes to be pruned. Volumes can be filtered by the following attributes:
|
|
|
|
- dangling
|
|
- driver
|
|
- label
|
|
- name
|
|
- opt
|
|
- scope
|
|
|
|
#### **--help**
|
|
|
|
Print usage statement
|
|
|
|
|
|
## EXAMPLES
|
|
|
|
```
|
|
$ podman volume prune
|
|
|
|
$ podman volume prune --force
|
|
|
|
$ podman volume prune --filter label=mylabel=mylabelvalue
|
|
```
|
|
|
|
## SEE ALSO
|
|
podman-volume(1)
|
|
|
|
## HISTORY
|
|
November 2018, Originally compiled by Urvashi Mohnani <umohnani@redhat.com>
|