From 1e0039a839ea019a43fe21feb7658a2c0b5e3099 Mon Sep 17 00:00:00 2001 From: Sankalp Rangare Date: Thu, 16 Sep 2021 20:34:39 +0530 Subject: added healthcheck to ps command Signed-off-by: Sankalp Rangare --- pkg/ps/ps.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg') diff --git a/pkg/ps/ps.go b/pkg/ps/ps.go index bf3286028..0f154c524 100644 --- a/pkg/ps/ps.go +++ b/pkg/ps/ps.go @@ -241,6 +241,13 @@ func ListContainerBatch(rt *libpod.Runtime, ctr *libpod.Container, opts entities UTS: uts, } } + + if hc, err := ctr.HealthCheckStatus(); err == nil { + ps.Status = hc + } else { + logrus.Debug(err) + } + return ps, nil } -- cgit v1.2.3-54-g00ecf