Closed dirkmueller closed 1 year ago
This is not a pytest_container bug, the image has no healtcheck.
The actual problem is the following entry in the openSUSE:Factory prjconf:
BuildEngine: podman
podman uses the oci image format by default and not the docker format, but only the docker format supports healtcheck. Hence the image gets build but no healthcheck is created.
You can also see that in the build log:
[ 41s] time="2023-08-13T18:49:24Z" level=warning msg="HEALTHCHECK is not supported for OCI image format and will be ignored. Must use `docker` format"
so it fails within 3 seconds, but the docker file actually has a healthcheck start for 5m:
HEALTHCHECK --start-period=5m --timeout=5s --interval=5s --retries=2
which seems to indicate to me that healthchecks are not respected. any idea how to debug further?