summaryrefslogtreecommitdiff
path: root/cmd/podman/pods
diff options
context:
space:
mode:
authorHironori Shiina <shiina.hironori@jp.fujitsu.com>2021-07-09 17:52:45 -0400
committerHironori Shiina <shiina.hironori@jp.fujitsu.com>2021-07-09 18:08:23 -0400
commit6bdb990c9e4d9d881854cca3bd74be37bf660adb (patch)
treeb9fa5e12db25d3cc458d2b273a944c93f6d503fe /cmd/podman/pods
parent24a5eeafc54ef7b1c04bfa8efe78fddd3f7e4014 (diff)
downloadpodman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.tar.gz
podman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.tar.bz2
podman-6bdb990c9e4d9d881854cca3bd74be37bf660adb.zip
Restore headers of optional information in 'podman pod ps'
When optional information such as container IDs and names in pods, the headers are not displayed. This fix restored the headers. Documentation of this subcommand is also updated. Signed-off-by: Hironori Shiina <shiina.hironori@jp.fujitsu.com>
Diffstat (limited to 'cmd/podman/pods')
-rw-r--r--cmd/podman/pods/ps.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/pods/ps.go b/cmd/podman/pods/ps.go
index 3e5ab86f4..14e3e2ea9 100644
--- a/cmd/podman/pods/ps.go
+++ b/cmd/podman/pods/ps.go
@@ -124,6 +124,11 @@ func pods(cmd *cobra.Command, _ []string) error {
"NumberOfContainers": "# OF CONTAINERS",
"Created": "CREATED",
"InfraID": "INFRA ID",
+ "ContainerIds": "IDS",
+ "ContainerNames": "NAMES",
+ "ContainerStatuses": "STATUS",
+ "Cgroup": "CGROUP",
+ "Namespace": "NAMESPACES",
})
renderHeaders := true
row := podPsFormat()