mirror of
https://github.com/containers/podman.git
synced 2025-10-14 09:45:59 +08:00
added healthcheck to ps command
Signed-off-by: Sankalp Rangare <sankalprangare786@gmail.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user