Docker Hub: Rate Limits

Troubleshooting: Docker Hub Rate Limits

Docker Hub has limits on the amount of pulls unauthenticated users can do. This typically manifests itself with failing builds due to the following error:

toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: [https://www.docker.com/increase-rate-limit](https://www.docker.com/increase-rate-limit)

There are two solutions to this problem.

Solution

  1. Use AWS Elastic Container Registry (ECR) public images instead of using the Docker Hub. ECR supports unlimited free pulls from AWS resources
  2. Flightcontrol works with your Docker Hub account, if you have one. Use the DOCKER_USERNAME and DOCKER_PASSWORD environment variables in your configuration and Flightcontrol will authenticate the pull request for you. This should alleviate the rate limits issue.