fix: add state
This commit is contained in:
parent
a75b01e78a
commit
4089949a3f
|
@ -64,7 +64,7 @@ func showPSOutput(c *cli.Context) {
|
||||||
logrus.Fatal(err)
|
logrus.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
tableCol := []string{"image", "created", "status", "ports"}
|
tableCol := []string{"image", "created", "status", "state", "ports"}
|
||||||
table := abraFormatter.CreateTable(tableCol)
|
table := abraFormatter.CreateTable(tableCol)
|
||||||
|
|
||||||
for _, container := range containers {
|
for _, container := range containers {
|
||||||
|
@ -78,6 +78,7 @@ func showPSOutput(c *cli.Context) {
|
||||||
abraFormatter.RemoveSha(container.Image),
|
abraFormatter.RemoveSha(container.Image),
|
||||||
abraFormatter.HumanDuration(container.Created),
|
abraFormatter.HumanDuration(container.Created),
|
||||||
container.Status,
|
container.Status,
|
||||||
|
container.State,
|
||||||
formatter.DisplayablePorts(container.Ports),
|
formatter.DisplayablePorts(container.Ports),
|
||||||
}
|
}
|
||||||
table.Append(tableRow)
|
table.Append(tableRow)
|
||||||
|
|
Loading…
Reference in New Issue