-
Notifications
You must be signed in to change notification settings - Fork 2.6k
quadlet (podman-systemd.unit) support for --retry and --retry-delay for image pulls #25109
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
Comments
We can add the fields in quadlet for sure but I think 5XX errors are not retried currently as per containers/common#2299 so that would not be enough for your example. |
Thanks @Luap99 - I'll comment over there and follow progress. |
A temporary workaround could be setting the |
yeah. I'm not even sure supporting |
I will take this one. |
Actually, i see @Luap99 already did part of this in containers/common#2378. @Luap99 , should I find another issue? |
@jankaluza You can take this one to add the quadlet fields, the retry on 5xx is related but both parts work individually as well. |
This commit adds new Retry= and RetryDelay= options to quadlet.go which result in --retry and --retry-delay usage in podman run command. This allows configuring the retry logic in .container systemd files. Fixes: containers#25109 Signed-off-by: Jan Kaluza <[email protected]>
This commit adds new Retry= and RetryDelay= options to quadlet.go which result in --retry and --retry-delay usage in podman run command. This allows configuring the retry logic in .container systemd files. Fixes: containers#25109 Signed-off-by: Jan Kaluza <[email protected]>
This commit adds new Retry= and RetryDelay= options to quadlet.go which result in --retry and --retry-delay usage in podman run, image and build commands. This allows configuring the retry logic in the systemd files. Fixes: containers#25109 Signed-off-by: Jan Kaluza <[email protected]>
This commit adds new Retry= and RetryDelay= options to quadlet.go which result in --retry and --retry-delay usage in podman run, image and build commands. This allows configuring the retry logic in the systemd files. Fixes: containers#25109 Signed-off-by: Jan Kaluza <[email protected]>
Feature request description
Currently there doesn't seem to be support for image pull retry and retry-delay for systemd.unit files.
This is a feature request to add those features.
Suggest potential solution
Support for controlling retries from a systemd unit container file.
Have you considered any alternatives?
No.
Additional context
An example where I have seen an issue is with this unit. The error that I got was:
I would expect to be able to configure things such that this error was retried.
The
setting pull timeout to 5m0s
suggests the code related to this is in https://github.com/containers/common/blob/34a90afcdc6d30277beeda3988c9a816d15160b9/libimage/copier.go#L378The text was updated successfully, but these errors were encountered: