summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-18 06:22:05 -0500
committerGitHub <noreply@github.com>2022-01-18 06:22:05 -0500
commitd6b0720b9cd5d993dffc229e73d8377aae2c2ed4 (patch)
treea0efd9dff39774597d87c98dbe089b57af77c726 /cmd
parentd0eb24bae0023848447568d024acdaadb632edfe (diff)
parent141de86862898a4b9e35c15f51031952c63c7114 (diff)
downloadpodman-d6b0720b9cd5d993dffc229e73d8377aae2c2ed4.tar.gz
podman-d6b0720b9cd5d993dffc229e73d8377aae2c2ed4.tar.bz2
podman-d6b0720b9cd5d993dffc229e73d8377aae2c2ed4.zip
Merge pull request #12684 from mheon/remap_states
Revamp Libpod state strings for Docker compat
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/containers/ps.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/podman/containers/ps.go b/cmd/podman/containers/ps.go
index c8a03ab4f..f6ba3c1f3 100644
--- a/cmd/podman/containers/ps.go
+++ b/cmd/podman/containers/ps.go
@@ -358,13 +358,12 @@ func (l psReporter) State() string {
case "running":
t := units.HumanDuration(time.Since(time.Unix(l.StartedAt, 0)))
state = "Up " + t + " ago"
- case "configured":
- state = "Created"
case "exited", "stopped":
t := units.HumanDuration(time.Since(time.Unix(l.ExitedAt, 0)))
state = fmt.Sprintf("Exited (%d) %s ago", l.ExitCode, t)
default:
- state = l.ListContainer.State
+ // Need to capitalize the first letter to match Docker.
+ state = strings.Title(l.ListContainer.State)
}
return state
}