From 7d0e0a7129e18ca7295cf4b0fbec22d0df78d3dd Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Thu, 9 Apr 2020 16:11:38 -0500 Subject: v2podman container cleanup add the ability to clean up after a container has attempted to run. this is also important for podman run --rm --rmi. also included are fixes and tweaks to various code bits to correct regressions on output. Signed-off-by: Brent Baude --- pkg/domain/entities/container_ps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/domain/entities/container_ps.go') 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: -- cgit v1.2.3-54-g00ecf