podman-volume-ls - Man Page

List all the available volumes

Synopsis

podman volume ls [options]

Description

Lists all the volumes that exist. The output can be filtered using the --filter flag and can be formatted to either JSON or a Go template using the --format flag. Use the --quiet flag to print only the volume names.

Options

--filter, -f=filter

Volumes can be filtered by the following attributes:

FilterDescription
dangling[Dangling] Matches all volumes not referenced by any containers
driver[Driver] Matches volumes based on their driver
label[Key] or [Key=Value] Label assigned to a volume
name[Name] Volume name (accepts regex)
optMatches a storage driver options
scopeFilters volume by scope
untilOnly remove volumes created before given timestamp

--format=format

Format volume output using Go template.

Valid placeholders for the Go template are listed below:

PlaceholderDescription
.AnonymousIndicates whether volume is anonymous
.CreatedAtVolume creation time
.DriverVolume driver
.GIDGID of volume
.InspectVolumeData ...Don't use
.LabelsLabel information associated with the volume
.MountCountNumber of times the volume is mounted
.MountpointSource of volume mount point
.NameVolume name
.NeedsChownIndicates whether volume needs to be chowned
.NeedsCopyUpIndicates if volume needs to be copied up to
.OptionsVolume options
.ScopeVolume scope
.StatusStatus of the volume
.StorageIDStorageID of the volume
.TimeoutTimeout of the volume
.UIDUID of volume
.VolumeConfigResponse ...Don't use

--help

Print usage statement.

--noheading, -n

Omit the table headings from the listing.

--quiet, -q

Print volume output in quiet mode. Only print the volume names.

Examples

$ podman volume ls

$ podman volume ls --format json

$ podman volume ls --format "{{.Driver}} {{.Scope}}"

$ podman volume ls --filter name=foo,label=blue

$ podman volume ls --filter label=key=value

See Also

podman(1), podman-volume(1)

History

November 2018, Originally compiled by Urvashi Mohnani umohnani@redhat.com ⟨mailto:umohnani@redhat.com⟩

Referenced By

podman-volume(1).