diff --git a/cmd/podman/pod_ps.go b/cmd/podman/pod_ps.go index 8fea3f588f..85d4e51e2f 100644 --- a/cmd/podman/pod_ps.go +++ b/cmd/podman/pod_ps.go @@ -528,6 +528,8 @@ func getAndSortPodJSONParams(pods []*libpod.Pod, opts podPsOptions, runtime *lib } var status string switch batchInfo.ConState { + case libpod.ContainerStateExited: + fallthrough case libpod.ContainerStateStopped: status = EXITED case libpod.ContainerStateRunning: diff --git a/cmd/podman/shared/pod.go b/cmd/podman/shared/pod.go index badc7a8370..4e8e58c4d2 100644 --- a/cmd/podman/shared/pod.go +++ b/cmd/podman/shared/pod.go @@ -35,6 +35,8 @@ func GetPodStatus(pod *libpod.Pod) (string, error) { } for _, ctrStatus := range ctrStatuses { switch ctrStatus { + case libpod.ContainerStateExited: + fallthrough case libpod.ContainerStateStopped: statuses[stopped]++ case libpod.ContainerStateRunning: