podman-volume-ls(1)

podman-volume-ls β€” the glow-up guide πŸ’…βœ¨

okay so bestie, listen β€” you want to see every single volume chillin' on your system? this is literally the command for that. it's podman-volume-ls, and it's giving "let me show you what's in my closet" but for storage. no cap, it's iconic.


NAME πŸŽ€

podman-volume-ls β€” list all the available volumes, periodt.


SYNOPSIS ✨

podman volume ls [options]

DESCRIPTION 🌸

so this command lists all the volumes that exist on your system. that's it, that's the vibe. πŸ’–

but here's where it gets cute β€” you can:

  • filter the output with the --filter flag (iykyk, we'll get to that)
  • format it as either JSON or a Go template using the --format flag
  • use the --quiet flag to print only the volume names (for when you're lowkey in a rush)

it's flexible, it's powerful, it's main character energy fr fr. πŸ¦‹


OPTIONS πŸ‘‘

--filter, -f=filter πŸ”

okay so this one filters what volumes are shown in the output. super useful when you have like a million volumes and you only care about a few.

important rule: if you have more than one filter, you gotta pass the --filter option multiple times β€” like this:

--filter name=test --filter driver=local

now let's talk filter logic because it's giving ✨nuance✨:

  • filters with the same key work inclusive β€” the only exception is label, which is exclusive
  • filters with different keys always work exclusive

volumes can be filtered by these attributes, bestie:

  • anonymous β€” [Bool] matches anonymous volumes (true) or named volumes (false)
  • 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
  • label! β€” [Key] or [Key=Value] volumes without the specified label
  • name β€” [Name] volume name (accepts regex!)
  • opt β€” matches a storage driver options
  • scope β€” filters volume by scope
  • after/since β€” filter by volumes created after the given VOLUME (name or tag)
  • until β€” filter by volumes created before given timestamp

--format=format 🎨

this beautifies your volume output using a Go template. valid placeholders for the Go template are listed below β€” no gatekeeping here:

  • .Anonymous β€” indicates whether volume is anonymous
  • .CreatedAt ... β€” volume creation time
  • .Driver β€” volume driver
  • .GID β€” GID of volume
  • .InspectVolumeData ... β€” don't use πŸ’€
  • .Labels ... β€” label information associated with the volume
  • .LockNumber β€” number of the volume's Libpod lock
  • .MountCount β€” number of times the volume is mounted
  • .Mountpoint β€” source of volume mount point
  • .Name β€” volume name
  • .NeedsChown β€” indicates whether volume needs to be chowned
  • .NeedsCopyUp β€” indicates if volume needs to be copied up to
  • .Options ... β€” volume options
  • .Scope β€” volume scope
  • .Status ... β€” status of the volume
  • .StorageID β€” StorageID of the volume
  • .Timeout β€” timeout of the volume
  • .UID β€” UID of volume
  • .VolumeConfigResponse ... β€” don't use πŸ’€

--help πŸ™‹β€β™€οΈ

prints the usage statement. simple, slay.


--noheading, -n πŸ“‹

omits the table headings from the listing. for when you're feeling minimalistic, periodt.


--quiet, -q 🀫

prints volume output in quiet mode β€” only the volume names. no labels, no drivers, no extras. just vibes.


EXAMPLES 🌈

list all volumes β€” the classic:

$ podman volume ls

list all volumes and display content as json format β€” for the data girlies:

$ podman volume ls --format json

list all volumes and display their Driver and Scope fields β€” a little curated moment:

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

list volumes with the name foo and label blue β€” specific and cute:

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

list volumes with the label key=value β€” iykyk:

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

SEE ALSO πŸ‘€


HISTORY πŸ“œ

November 2018 β€” originally compiled by Urvashi Mohnani (umohnani@redhat.com ⟨mailto:umohnani@redhat.com⟩). a true icon, we stan. πŸ’–


okay bestie, that's the whole page β€” from the podman-volume-ls(1) header all the way down to the podman-volume-ls(1) footer, which means this manual page is from general commands land and was compiled back in November 2018 by Urvashi Mohnani. slayed. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from