From 4089949a3f8b046a3758d42909d622c243abe8cc Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Thu, 23 Dec 2021 21:14:15 +0100 Subject: [PATCH] fix: add state --- cli/app/ps.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/app/ps.go b/cli/app/ps.go index 2038ee20..84170243 100644 --- a/cli/app/ps.go +++ b/cli/app/ps.go @@ -64,7 +64,7 @@ func showPSOutput(c *cli.Context) { logrus.Fatal(err) } - tableCol := []string{"image", "created", "status", "ports"} + tableCol := []string{"image", "created", "status", "state", "ports"} table := abraFormatter.CreateTable(tableCol) for _, container := range containers { @@ -78,6 +78,7 @@ func showPSOutput(c *cli.Context) { abraFormatter.RemoveSha(container.Image), abraFormatter.HumanDuration(container.Created), container.Status, + container.State, formatter.DisplayablePorts(container.Ports), } table.Append(tableRow)