Docker Hub and other registries
What Docker Hub offers and limits, how to read its rate-limit headers, and the alternatives: GHCR, cloud registries, official-image mirrors, self-hosting.
Docker Hub and other registries
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- Docker Hub is the default registry: any name without a registry host is pulled from docker.io, and bare names come from library/, the Official Images.
- Hub marks trust levels: Docker Official Images, Verified Publisher and Sponsored OSS. Anything else is a user upload and deserves the same care as any third-party code.
- Pulls are rate-limited. Docker's docs list 100 per 6 hours for anonymous users per IPv4 address or IPv6 /64, and 200 for signed-in Personal accounts. The registry reports your limit in RateLimit headers.
- Shared IPs hit those limits first: CI runners, NAT gateways and offices. Sign in with a token, cache, or pull from a mirror.
- Other registries speak the same OCI API: GHCR, GitLab, Quay, and the cloud providers' ECR, Artifact Registry and ACR. Pick the one next to where your images are built and run.
- Official images are mirrored elsewhere, for example on Amazon ECR Public and Google's mirror.gcr.io, with identical digests, so you can pin by digest and pull from the closest copy.
The registry you didn’t choose
Every docker pull nginx talks to Docker Hub, because, as the naming lesson showed, a name without a registry host means docker.io. Most people never chose Docker Hub. It’s simply the default. That’s fine until your CI starts failing with toomanyrequests, or a security review asks who published the image you depend on. Then it helps to know what Hub promises and what else exists.
What Docker Hub offers
- Docker Official Images live in
library/:nginx,postgres,python,alpineand many more. Docker curates them with the upstream projects, builds them from public Dockerfiles, rebuilds them for security fixes, and attaches SBOM and provenance attestations, as the manifests lesson found. - Verified Publisher images come from commercial vendors whose identity Docker has checked, in the vendor’s namespace.
- Sponsored OSS images are open-source projects in Docker’s sponsorship programme.
- Everything else is a user’s upload. A popular image with a familiar name can still be anybody’s. Treat it like any third-party code.
The limits, and how to read them
Docker’s usage page lists these pull limits, subject to fair use:
| User | Pulls per 6 hours |
|---|---|
| Unauthenticated | 100 per IPv4 address or IPv6 /64 subnet |
| Personal (signed in) | 200 |
| Pro, Team, Business | Unlimited |
A pull is counted per manifest downloaded, so pulling a multi-platform image counts once for the platform you get. Version checks, the HEAD requests clients make to see whether a tag changed, don’t count. You can check your status the same way. I sent a HEAD request for alpine:latest with an anonymous token from auth.docker.io, using a short Python client. These are the response headers that matter, with my address replaced:
HEAD https://registry-1.docker.io/v2/library/alpine/manifests/latest
Accept: application/vnd.oci.image.index.v1+json
Authorization: Bearer <anonymous token>
docker-content-digest: sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
ratelimit-limit: 100;w=3600
ratelimit-remaining: 99;w=3600
docker-ratelimit-source: <your IPv6 /64 prefix>
curl -sI with the same two headers does the same. Two things to notice. The docker-ratelimit-source header shows the address being counted, here an IPv6 prefix, so everyone behind the same NAT shares one budget. And the header gave a window of w=3600, one hour, where the usage page says six. Trust the headers your requests actually get, and re-check the docs, since Docker has changed these limits several times.
The people who hit the limit are the ones sharing an address: CI runners, Kubernetes nodes behind a NAT gateway, an office. The fixes:
- Authenticate.
docker login -u ci-bot --password-stdinwith a Docker Hub access token, so pulls count against an account. - Cache. A pull-through cache keeps a local copy of what you pull. The registry in the private registry lesson can act as one, and the daemon’s
registry-mirrorssetting points Docker Hub pulls at it. - Pull from a mirror. Docker’s official images are republished elsewhere.
The same bytes, elsewhere
I asked three registries for alpine:3.24.4:
registry-1.docker.io library/alpine sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
public.ecr.aws docker/library/alpine sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
mirror.gcr.io library/alpine sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf
Identical digests, so identical bytes. Only Docker Hub returned rate-limit headers. A digest-pinned reference can come from any of them with the same guarantee. That’s content addressing paying off.
Other registries
Every registry here speaks the same OCI distribution API, so docker push and docker pull work unchanged. Only the hostname and the login differ.
| Registry | Host | Good fit |
|---|---|---|
| GitHub Container Registry | ghcr.io |
Code on GitHub. Actions push with the built-in GITHUB_TOKEN, and public images are free. |
| GitLab Container Registry | registry.gitlab.com |
Code on GitLab, with the CI job token. GitLab also has a dependency proxy for Hub. |
| Quay | quay.io |
Red Hat’s hosted registry, common for Red Hat and Kubernetes projects. |
| Amazon ECR | <account>.dkr.ecr.<region>.amazonaws.com |
Workloads on AWS: IAM auth, in-region pulls, immutable tags. |
| Google Artifact Registry | <region>-docker.pkg.dev |
Workloads on Google Cloud. It replaced Container Registry (gcr.io) for new projects. |
| Azure Container Registry | <name>.azurecr.io |
Workloads on Azure, with geo-replication. |
| Self-hosted | your hostname | Air-gapped networks, full control, or a cache: Distribution, Harbor, Nexus, Artifactory. |
The deciding factors are usually the same: put the registry next to where images are pulled, since cross-region and internet egress cost money and time, use the identity system you already have, and check that it supports what you need, such as immutable tags, the OCI referrers API for signatures, or vulnerability scanning.
About the video
The embed is all of Christian Lempa’s “New Docker Hub pull rate limits? What you have to do…”, March 2025, 9 minutes. Its chapters cover what users have to do now, creating a personal Docker Hub token, what to do in CI/CD, and final thoughts, and the description mentions alternatives such as GitLab’s dependency proxy, other registries and self-hosting. It was made around a limit change Docker announced for April 2025, and the numbers in it may not match today’s, so take the current figures from the docs and headers above. It doesn’t cover Official Images or mirrors. English was judged from the channel and its English caption track. The Pragmatic Programmer’s video in deeper compares registries on cost, with 2023 prices.
What was run: the rate-limit headers and digests came from HEAD requests to Docker Hub, public.ecr.aws and mirror.gcr.io made by a short Python client with anonymous tokens. Nothing ran in Docker. The limits table and the pull definition are from Docker’s usage docs, checked 2026-11-28.
Where this fits
Next, putting your own images into a registry: tagging and pushing images.
Check yourself
Builds on your CI runners fail with 'toomanyrequests: You have reached your unauthenticated pull rate limit'. What are your options?
Log in to Docker Hub with an access token so pulls count against an account, run a pull-through cache, or pull the same images from a mirror such as public.ecr.aws/docker/library.
How can you check how many Docker Hub pulls you have left without spending one?
Send a HEAD request for a manifest with a token. The response carries the ratelimit-limit and ratelimit-remaining headers, and Docker's docs say these version checks don't count as pulls.
mirror.gcr.io/library/alpine:3.24.4 and alpine:3.24.4 report the same digest. Why does that matter?
The same digest means the same bytes, so a pin made against Docker Hub can be pulled from the mirror with no loss of trust and without spending Docker Hub pulls.
What's the difference between a Docker Official Image and an image from a Verified Publisher?
Official Images are curated by Docker with upstream maintainers in the library namespace and built from public Dockerfiles. Verified Publisher images come from commercial vendors whose identity Docker has checked, under the vendor's own namespace.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.