From 6bdb990c9e4d9d881854cca3bd74be37bf660adb Mon Sep 17 00:00:00 2001 From: Hironori Shiina Date: Fri, 9 Jul 2021 17:52:45 -0400 Subject: 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 --- cmd/podman/pods/ps.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/podman/pods') 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() -- cgit v1.2.3-54-g00ecf