summaryrefslogtreecommitdiff
path: root/pkg/domain/entities/container_ps.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-10 14:11:30 +0200
committerGitHub <noreply@github.com>2020-04-10 14:11:30 +0200
commit2a8db9d17c5dd762366fe7c90304e76337e5d668 (patch)
tree68c8f58631d70cdfff949d3a171581b236525a8e /pkg/domain/entities/container_ps.go
parent838b5e1e387f6f6bdae06f053684832f77ca8796 (diff)
parent7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd (diff)
downloadpodman-2a8db9d17c5dd762366fe7c90304e76337e5d668.tar.gz
podman-2a8db9d17c5dd762366fe7c90304e76337e5d668.tar.bz2
podman-2a8db9d17c5dd762366fe7c90304e76337e5d668.zip
Merge pull request #5782 from baude/v2containercleanup
v2podman container cleanup
Diffstat (limited to 'pkg/domain/entities/container_ps.go')
-rw-r--r--pkg/domain/entities/container_ps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/entities/container_ps.go b/pkg/domain/entities/container_ps.go
index 8a8666ff9..f07b0364f 100644
--- a/pkg/domain/entities/container_ps.go
+++ b/pkg/domain/entities/container_ps.go
@@ -68,7 +68,7 @@ func (l ListContainer) State() string {
state = "Up " + t + " ago"
case "configured":
state = "Created"
- case "exited":
+ case "exited", "stopped":
t := units.HumanDuration(time.Since(time.Unix(l.ExitedAt, 0)))
state = fmt.Sprintf("Exited (%d) %s ago", l.ExitCode, t)
default: