-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 interval command line options ignored if set in Containerfile #20212
Comments
This is really annoying. I have wasted a lot of time now attempting to stop the health check from failing while debugging a resolver problem, but regardless of what I do the container always restarts, rendering debugging impossible. And because of similar experiences in the past I prefer to have the health check command encapsulated in a script on the root directory named But despite doing that, the container still failed the health check and restarted! Even though $ podman image inspect 90... | tail -11
"Healthcheck": {
"Test": [
"CMD-SHELL",
"/health.sh || exit 1"
],
"StartPeriod": 15000000000,
"Interval": 30000000000,
"Timeout": 3000000000
}
}
]
$ (This is was started using podman-compose and not the command line, however the shell script issue should be independent of that) |
A friendly reminder that this issue had no activity for 30 days. |
Regardless of what constitutes "no activity" (just lack of comments to this issue?), the problem is clearly described and there is not anything left to figure out. The remaining work is just to have someone find the time to fix it. |
A friendly reminder that this issue had no activity for 30 days. |
This issue should still be fixed eventually. |
I agree, I was working on this but got pulled off to other work |
Issue Description
The healthcheck interval related command line options (
health-interval
,health-startup-interval
) are ignored when the same options are directly set in the container image / Containerfile.Example in: https://github.com/filebrowser/filebrowser/blob/master/Dockerfile
Steps to reproduce the issue
Steps to reproduce the issue
docker.io/filebrowser/filebrowser:latest
--health-interval=30m --health-startup-interval=disable
as arguments topodman run
Describe the results you received
The healthcheck command is run on startup and every 3 seconds.
Describe the results you expected
The healthcheck command is not run on startup and only every 30 minutes.
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
N/A
Additional information
Always happen
The text was updated successfully, but these errors were encountered: