added healthcheck to ps command

Signed-off-by: Sankalp Rangare <sankalprangare786@gmail.com>
This commit is contained in:
Sankalp Rangare
2021-09-16 20:34:39 +05:30
parent 800d594afa
commit 1e0039a839
3 changed files with 16 additions and 0 deletions

View File

@ -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
}