-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Healthcheck not tracked on images #4799
Comments
what kind of image are you making? oci or otherwise? |
Just default, which is oci. |
I don't believe OCI containers support healthchecks - that's only supported
with Docker-formatted images.
If we're not producing errors about that, it could well be a bug
…On Tue, Jan 7, 2020 at 11:23 AM Jamie Bliss ***@***.***> wrote:
Just default, which is oci.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4799>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCFO3VNBOWHX3Z5MTILQ4ST6VANCNFSM4KDJHNDA>
.
|
as @mheon said, oci images dont have healthchecks are part of the spec and they are thrown away during image generation. i dont know if that is a logged or not. if you want the image metadata to retain healthchecks, you must use docker format. |
Yeah, just confirmed, with the default build settings:
|
Also, it's still not exposed on docker format images. I tested this with:
A subset of the inspect output is:
|
i guess the question is if it is not there OR we are not displaying it via inspect. @mheon would this be in the json in the filesystem? |
I presume so? It'd be in the image metadata JSON blobs. We access those through c/image, so this could be a bug retrieving them from c/image (unlikely) or a display issue where we're not showing them despite them being added (possible, but also not very likely, I think). |
when a docker image has a defined healthcheck, it should be displayed with inspect. this is only valid for docker images as oci images are not aware of healthchecks. Fixes: containers#4799 Signed-off-by: Brent Baude <[email protected]>
/kind feature
Description
Looking at
podman image inspect
, the varlink IDL, andpython-podman
, I can see that containers have a healthcheck, but it is not tracked on the image.Note that I have been consulting https://github.com/containers/libpod/blob/master/cmd/podman/varlink/io.podman.varlink this entire time, so I'm reasonably confident this issue exists in
master
.Steps to reproduce the issue:
Dockerfile
with aHEALTHCHECK
line) with podmanDescribe the results you received:
No mention of a healthcheck anywhere in the image metadata
Describe the results you expected:
A mention in the healthcheck (probably in the
Config
section)Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Ummm... complicated. Custom compile, partially using unreleased and semi-released debian packages.
The text was updated successfully, but these errors were encountered: