-
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
Does not schedule healthcheck for images with HEALTHCHECK #3525
Comments
I think I now understand the root cause for this: if a docker image doesn't provide a I.e. with an image created from the following Dockerfile snippet
podman would schedule a healthcheck. |
Furthermore: podman must disable the healthcheck if image has been built with |
If the image was built with "HEALTHCHECK NONE" then we should create a container without healthcheck configuration. Otherwise executing the healthcheck on the container will return "unhealthy" instead of the correct error message that the container doesn't have a healthcheck. We also ignore the healthcheck configuration if the command list is empty or the command string is empty. Fixes containers#3525 Signed-off-by: Stefan Becker <[email protected]>
Some older versions of podman don't have proper defaults for HEALTHCHECK containers/podman#3525
Some older versions of podman don't have proper defaults for HEALTHCHECK containers/podman#3525
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman only schedules health check when command line option
--healthcheck-command
is given but not when the docker image has aHEALTHCHECK
configuration. This is a regression compared to Docker CLI behaviour.Steps to reproduce the issue:
HEALTHCHECK
inDockerfile
Describe the results you received:
(IMHO the
podman build
example indicates another bug, because theHEALTHCHECK
issue gets lost completely...)Describe the results you expected:
Health check service & timer should be created.
Additional information you deem important (e.g. issue happens only occasionally):
May be related to #3507?
Output of
podman version
:Output of
podman info --debug
:The text was updated successfully, but these errors were encountered: