Fix Docker Hub "You have reached your pull rate limit"
Docker Hub "pull rate limit" is a 429 for too many anonymous pulls. Check what is left with a HEAD request, then docker login and cache images in CI.
You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limitsDocker Hub refused with HTTP 429 because this IP (or this account) used up its pull limit. Anonymous pulls are counted per IP, so docker login moves you to a per-account limit; if that is still not enough, stop pulling the same images over and over. The limit clears with time.
The limits in the official docs (2026-10, all per 6 hours):
| Who | Limit |
|---|---|
| Not signed in | 100 per IPv4 address or IPv6 /64 |
| Signed in, Personal | 200 |
| Signed in, Pro · Team · Business | unlimited |
[1] Check the remaining count in the headers. A HEAD request to the docs' test repository ratelimitpreview/test returns the headers without using any quota; the docs say "Using GET emulates a real pull and counts towards the limit" and "Using HEAD won't."
$ TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)$ curl -s --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest | grep -i ratelimitdocker-ratelimit-source: 198.51.100.7ratelimit-limit: 100;w=3600ratelimit-remaining: 100;w=3600ratelimit-remaining is what is left, and w= is the window in seconds. docker-ratelimit-source is what Docker Hub counts against; for anonymous pulls it is your public IP. If it shows a company NAT address instead of the server's own IP, you are sharing the limit with every machine behind that exit.
To see an account's limit, add --user '<username>:<token>' to the token request. Use a personal access token from Docker Hub rather than your password, and pass it through an environment variable so it stays out of shell history.
[2] Sign in where the pulls happen. The docs list a method per environment:
| Environment | How to authenticate |
|---|---|
| Docker Engine (servers) | docker login |
| Docker Desktop | Sign in / Create Docker ID in the menu |
| Docker Swarm | --with-registry-auth when deploying services |
| GitHub Actions | the docker login action, or username + access token |
| Kubernetes | private registry pull setup (imagePullSecrets) |
Run docker login as the user and on the machine whose daemon pulls. Signing in on a laptop does nothing for a CI runner or a Kubernetes node; those still pull anonymously. After signing in, repeat step 1 with that account in the token request and check that ratelimit-limit shows the account's limit.
[3] Stop pulling the same image again and again. The limit is about pulls, so fewer pulls lasts longer.
- In CI, keep the runner's image cache instead of
docker pullon every job, or copy the base images you use most to an internal registry once and pull from there. - The docs define a pull as a version check plus any resulting download, and say version checks alone are not counted for usage pricing. Cutting real layer downloads is what saves the limit.
- In Kubernetes, keep
imagePullPolicy: Always(pull every time, even if the node has the image) only where you need it.
[4] Once you are over the limit, all you can do is wait. Read the window length from the headers in step 1 and stop pulling until it passes; retries inside the window just get the same 429. If it is urgent, pull on another machine with a signed-in account and move the image with docker save / docker load. Check that the moved image matches this host's CPU as in Docker exec format error. If docker commands stop at the socket instead, see Docker daemon socket permission denied.
Check it with the HTTP status codes tool ↗ — calculated in your browser.