summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-01-27 14:21:59 -0800
committerGitHub <noreply@github.com>2020-01-27 14:21:59 -0800
commit326cdf944daae40ec83decf38ed1477e806cd846 (patch)
tree3f2c6a1bc53d3f640c26ed53ed3ed7388d474ba4 /libpod
parent33d41a35e5fbac4b674f66f3a2d537fc9e484514 (diff)
parent6181faa90de3a166004cca4fb6a8d85c17cbfe53 (diff)
downloadpodman-326cdf944daae40ec83decf38ed1477e806cd846.tar.gz
podman-326cdf944daae40ec83decf38ed1477e806cd846.tar.bz2
podman-326cdf944daae40ec83decf38ed1477e806cd846.zip
Merge pull request #4986 from baude/showhconimage
inspect image healthchecks
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/image.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 6ea49e2a9..7ee8c45d7 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -1012,6 +1012,15 @@ func (i *Image) Inspect(ctx context.Context) (*inspect.ImageData, error) {
History: ociv1Img.History,
NamesHistory: i.NamesHistory(),
}
+ if manifestType == manifest.DockerV2Schema2MediaType {
+ hc, err := i.GetHealthCheck(ctx)
+ if err != nil {
+ return nil, err
+ }
+ if hc != nil {
+ data.HealthCheck = hc
+ }
+ }
return data, nil
}