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: pull rate limit reached. #3580
Comments
Our build server should actually only pull from our private docker registry, never from docker.org. Is the problem maybe only a setting which we did not change on hub.libelektra.org? Or are there images which are not mirrored at hub.libelektra.org? @robaerd can you please take a look? It is urgent, as it effects our builds. |
It seems that it always checks for updated base images which are not on our hub... |
This is part of the monthly rebuild of the docker images, since the month is part of the image id. The docker images are currently cached again, so no rebuild of the docker images should happen and therefore the error should not reoccur at least this month. I'm still not sure how we could exceed the 100 pull limit with our ~14 docker images. |
Thank you for looking into it. 💖 Yes, it looks a bit weird: if it is only 14 docker images and we pull only monthly we should be way below any limit? |
Is hub.libelektra.org configured like this: https://docs.docker.com/registry/recipes/mirror ? If so, my understanding is that the check whether the image is up-to-date should only count towards the quota, if it really needs to pull a new image. The easiest way around the quota would be to create a Docker Hub Account for the CI. There is an Open Source Program, so probably we would be eligible for an unlimited account. |
I could do the application if it helps. But first we should find out what actually the problem is. |
I don't know how Docker Hub tracks the rate limit. I assume it is based on IP, otherwise it would be too easy to reset locally. In that case, is our build server the only thing that would appear to Docker Hub via this IP? |
Yes, the build server has a dedicated IP, even several ones, and the CI is the only part that uses docker. |
It seems that the Jenkins Pipeline runs a job (I think for the website) that tries to pull from Docker Hub all the time: https://build.libelektra.org/blue/organizations/jenkins/libelektra/detail/PR-3589/5/pipeline/696 AFAIK this happens because of the use of We should probably just use |
Thank you for finding out! 💖 |
Thank you for finding the cause of this problem! Alternatively to removing |
I like this idea! Regardless of the Docker pull limits this would be an improvement! |
Yes that would also be an option. The image in question is already the base image for the actual |
Yesterday I was testing the shared library on jenkins where only the pull-stage was executed. No image building, only pulling from our private docker registry at hub.libelektra.org and I still got the Docker Rate Limit error. I looked a bit deeper and managed to find the cause of our problem.
|
Thank you so much for finding out 💖 |
@robaerd can we close this or is anything else to do? |
All docker images used in the artifact stage (webui, website, package tests) still pull from docker.org instead of our private registry. I think this should probably be in a separate issue since we would never exceed the docker pull-limit with this. But since the watchtower image update, this issue should be fixed and IMHO can be closed. |
Probably nothing else needs to be done. If we do not hit the limits, it is imho okay to pull from docker.org. |
Docker has recently implemented a pull rate limit for anonymous and free users. The limits are 100 (anon) and 200 (free) container image pull requests per six hours.
Builds are beginning to fail due to this limit and we will need to implement a fix or workaround.
The text was updated successfully, but these errors were encountered: