podman-volume-inspect - Man Page

Get detailed information on one or more volumes

Synopsis

podman volume inspect [options] volume [...]

Description

Display detailed information on one or more volumes. The output can be formatted using the --format flag and a Go template. To get detailed information about all the existing volumes, use the --all flag. Volumes can be queried individually by providing their full name or a unique partial name.

Options

--all, -a

Inspect all volumes.

--format, -f=format

Format volume output using Go template

Valid placeholders for the Go template are listed below:

PlaceholderDescription
.AnonymousIndicates whether volume is anonymous
.CreatedAt ...Volume creation time
.DriverVolume driver
.GIDGID the volume was created with
.Labels ...Label information associated with the volume
.LockNumberNumber of the volume's Libpod lock
.MountCountNumber of times the volume is mounted
.MountpointSource of volume mount point
.NameVolume name
.NeedsChownIndicates volume needs to be chowned on first use
.NeedsCopyUpIndicates volume needs dest data copied up on first use
.Options ...Volume options
.ScopeVolume scope
.Status ...Status of the volume
.StorageIDStorageID of the volume
.TimeoutTimeout of the volume
.UIDUID the volume was created with

--help

Print usage statement

Examples

Inspect named volume.

$ podman volume inspect myvol
[
     {
          "Name": "myvol",
          "Driver": "local",
          "Mountpoint": "/home/myusername/.local/share/containers/storage/volumes/myvol/_data",
          "CreatedAt": "2023-03-13T16:26:48.423069028-04:00",
          "Labels": {},
          "Scope": "local",
          "Options": {},
          "MountCount": 0,
          "NeedsCopyUp": true,
          "NeedsChown": true
     }
]

Inspect all volumes.

$ podman volume inspect --all
[
     {
          "Name": "myvol",
          "Driver": "local",
          "Mountpoint": "/home/myusername/.local/share/containers/storage/volumes/myvol/_data",
          "CreatedAt": "2023-03-13T16:26:48.423069028-04:00",
          "Labels": {},
          "Scope": "local",
          "Options": {},
          "MountCount": 0,
          "NeedsCopyUp": true,
          "NeedsChown": true
     }
]

Inspect named volume and display its Driver and Scope field.

$ podman volume inspect --format "{{.Driver}} {{.Scope}}" myvol
local local

See Also

podman(1), podman-volume(1), podman-inspect(1)

History

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

Referenced By

podman-inspect(1), podman-volume(1).

The man page docker-volume-inspect(1) is an alias of podman-volume-inspect(1).