From 8e6a6197db6496b9ef98399be49dfda8fb14811a Mon Sep 17 00:00:00 2001 From: Ashley Cui Date: Thu, 30 Jul 2020 13:50:50 -0400 Subject: add {{.RunningFor}} placeholder in ps --format For docker compatibility Signed-off-by: Ashley Cui --- cmd/podman/containers/ps.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/containers/ps.go b/cmd/podman/containers/ps.go index 34fa4fab5..64271031d 100644 --- a/cmd/podman/containers/ps.go +++ b/cmd/podman/containers/ps.go @@ -307,6 +307,10 @@ func (l psReporter) Status() string { return l.State() } +func (l psReporter) RunningFor() string { + return l.CreatedHuman() +} + // Command returns the container command in string format func (l psReporter) Command() string { command := strings.Join(l.ListContainer.Command, " ") -- cgit v1.2.3-54-g00ecf