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 toomanyrequests limit reached on TravisCI #410

Closed
peterjc opened this issue May 31, 2021 · 5 comments
Closed

Docker toomanyrequests limit reached on TravisCI #410

peterjc opened this issue May 31, 2021 · 5 comments

Comments

@peterjc
Copy link
Contributor

peterjc commented May 31, 2021

Over on biopython/biopython-wheels#12 we've started running into a new Docker failure:

You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limits.

Quoting that URL:

On November 20, 2020, rate limits anonymous and free authenticated use of Docker Hub went into effect. Anonymous and Free Docker Hub users are limited to 100 and 200 container image pull requests per six hours.

Google results suggests that 100 anonymous pulls per 6 hours is per IP address, and thus easily hit from TravisCI.

The consensus seems to be register a Docker Hub account, and use something like this:

echo $DOCKERHUB_TOKEN | docker login --username $DOCKERHUB_USER --password-stdin

Assuming this is probably going to become standard practice for multibuild, we could be consistent about variable names? Presumably each project make its own DockerHub account?

@isuruf
Copy link
Collaborator

isuruf commented May 31, 2021

This happens only for the test image matthewbrett/trusty. manylinux docker images are in quay.io which doesn't have this limitation.

Easiest solution is to move matthewbrett/trusty to quay.io as well.

cc @matthew-brett

@peterjc
Copy link
Contributor Author

peterjc commented Jun 1, 2021

I don't see where the current (non-quay.io) docker image locations are specified, perhaps a default?

@mattip
Copy link
Collaborator

mattip commented Jun 1, 2021

The docker image for testing is specified staring here https://github.com/matthew-brett/multibuild/blob/devel/travis_linux_steps.sh#L121. Since the default for docker is to pull from docker hub, the line docker pull matthewbrett/trusty will pull from there. This should be changed to docker pull quay.io/matthewbrett/trusty or whatever the new image is called.

Note that by setting DOCKER_TEST_IMAGE this can be avoided, unfortunately the images I maintain on https://github.com/multi-build/docker-images are also pushed to https://hub.docker.com/u/multibuild

@peterjc
Copy link
Contributor Author

peterjc commented Jun 1, 2021

So first suitable images need to identified on (or existing ones upload to) quay.io before we can change travis_linux_steps.sh to avoid pulling images from Docker Hub?

@mattip
Copy link
Collaborator

mattip commented Oct 23, 2024

The images have been uploaded to quay.io and the defaults adjusted accordingly. Closing.

@mattip mattip closed this as completed Oct 23, 2024
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

No branches or pull requests

3 participants