NAME 名称

podman-volume-inspect - Get detailed information on one or more volumes
podman-volume-inspect - 获取一个或多个卷的详细信息

SYNOPSIS 概要

podman volume inspect [options] volume […]
podman volume inspect [选项] 卷 […]

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.
显示一个或多个卷的详细信息。输出可以使用 --format 标志和 Go 模板进行格式化。要获取关于所有现有卷的详细信息,请使用 --all 标志。可以通过提供它们的完整名称或唯一部分名称来单独查询卷。

OPTIONS 选项

--all, -a

Inspect all volumes. 检查所有卷。

--format, -f=format

Format volume output using Go template
使用 Go 模板格式化卷输出

Valid placeholders for the Go template are listed below:
Go 模板的有效占位符如下所示:

Placeholder

Description

.Anonymous

Indicates whether volume is anonymous
指示卷是否匿名

.CreatedAt … 创建时间 …

Volume creation time 卷创建时间

.Driver

Volume driver 卷驱动程序

.GID

GID the volume was created with
与创建卷的 GID

.Labels … .标签 …

Label information associated with the volume
与卷相关的标签信息

.LockNumber

Number of the volume’s Libpod lock
卷的 Libpod 锁的编号

.MountCount

Number of times the volume is mounted
挂载卷的次数

.Mountpoint

Source of volume mount point
卷挂载点的来源

.Name

Volume name 卷名称

.NeedsChown

Indicates volume needs to be chowned on first use
首次使用时需要更改所有者的卷

.NeedsCopyUp

Indicates volume needs dest data copied up on first use
首次使用时需要将目标数据复制到卷上

.Options … .选项...

Volume options 卷选项

.Scope

Volume scope 卷范围

.Status … .状态 …

Status of the volume 卷的状态

.StorageID

StorageID of the volume 卷的存储 ID

.Timeout

Timeout of the volume 卷的超时时间

.UID

UID the volume was created with
创建卷的 UID

--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
2018 年 11 月,最初由 Urvashi Mohnani umohnani@redhat.com 编译