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

Update Dockerfile - Docker has set rate limits on pulls #254

Conversation

fclante
Copy link

@fclante fclante commented Aug 29, 2024

Docker have implemented rate limiting on pulls, this results in failing builds with errors like: message": "You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
" then this is the reason. A quick fix is to use Amazon ECR - you can find it here: https://gallery.ecr.aws/
in most cases you can simply prefix your image-refs with public.ecr.aws/docker/library.

Docker have implemented rate limiting on pulls, this results in failing builds with errors like: message": "You have reached your pull rate limit. You may increase the limit by authenticating and upgrading:
https://www.docker.com/increase-rate-limit
" then this is the reason. A quick fix is to use Amazon ECR - you can find it here:
https://gallery.ecr.aws/
in most cases you can simply prefix your image-refs with public.ecr.aws/docker/library.
@webknjaz
Copy link
Member

Does it affect GitHub, though? I'm pretty sure their network is excluded from that.

Anyway, #230 is going to address this.

@fclante
Copy link
Author

fclante commented Sep 4, 2024

Does it affect GitHub, though? I'm pretty sure their network is excluded from that.

Anyway, #230 is going to address this.

We're using self-hosted runners in my company and have 350+ developers and approximately 1000+ repositories. Anyway I've forked the repo for a short term fix on our side, but the problem remains and seeing that this #230 Has been open since April 19 I don't expect it to be implemented anytime soon ;-). I just wanted to let you know.

btw. Amazon ECR also has rate limits, so we ultimately decided to cache our most used images in acr.io .

@fclante fclante closed this Sep 4, 2024
@fclante
Copy link
Author

fclante commented Sep 4, 2024

Closing - Is being addressed in #230 as per @webknjaz's comment.

@webknjaz
Copy link
Member

webknjaz commented Sep 4, 2024

Thanks for the info. So it sounds like you're hitting the limits because you're not on GitHub's network. The action optimizes for the community. The fact that enterprise can use it too is rather a side effect. I'm not sure how to improve this in a sustainable way. Perhaps, in the future, when that PR goes in, we could grow ability to point to a custom registry as a cache, which might be even useful for the folks behind firewalls. Though in general, I think that enterprise might be better off having forks that fit their limitations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants