Skip to content
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

docker: respect image_pull_timeout #24991

Open
wants to merge 1 commit into
base: b-gh-24955
Choose a base branch
from

Conversation

gulducat
Copy link
Member

I believe the docker driver stopped respecting image_pull_timeout in Nomad 1.9.0 in this refactor.

This makes the timeout apply again. There is some risk that folks are unwittingly depending on the timeout not working (it is a generous 5 minutes by default), but since it has only been this way since 1.9 (as far as I can tell), the exposure is somewhat limited.

The different contexts around here are pretty confusing. I hope I got them right, and left informative enough var names and comments to help future folks keep them straight.

This PR extends #24981, which makes recoverablePullError() properly wrap the passed error (such as a context timeout).

@gulducat gulducat requested review from a team as code owners January 31, 2025 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant