Docker Hub Rate Limiting and Pull-Through Cache Efficiency
This article explores the challenges of Docker Hub rate limits and the efficiency of pull-through cache solutions, particularly using Zot. It highlights how caching can mitigate rate limit issues and optimize image…

Docker Hub imposes rate limits on unauthenticated clients, with a maximum of 100 pulls per six hours, keyed to the IPv4 address or the IPv6 /64. This can lead to failures in CI pipelines, especially when multiple jobs pull images from the same IP address. For example, if a pipeline wave pulls fifteen images across ten jobs, the total number of pulls can exceed the rate limit, resulting in a 429 error. A pull-through cache can help manage these limits by acting as an intermediary between the client and Docker Hub, reducing the number of direct pulls to the registry. This approach is highlighted as a 'cheap answer' in the Dev.to article, which provides a guide on implementing such a cache using Zot. [1]
A pull-through cache can significantly improve the speed of image pulls. According to the Dev.to article, a hit in the cache is ten to twenty times faster than a direct pull from Docker Hub. For instance, pulling the alpine:3.22 image took 0.21–0.26 seconds from a cache, compared to 1.7–6.4 seconds directly from Docker Hub. This performance gain is attributed to the cache's ability to pre-fetch image manifests and layers, even before the client requests them. The cache warms itself ahead of the client, which means that the first pull from a cold cache can be as fast as subsequent pulls, contrary to the naive model that assumes a cold cache would be slower. [1]
The efficiency of a pull-through cache is further demonstrated by how it manages disk usage. The Dev.to article notes that the size of the cache is determined by the number of distinct tags requested, rather than the number of containers running in production. This is because identical blobs are hardlinked across repositories. For example, pulling the redis:7-alpine image added only 12,659,243 bytes to the cache, as the Alpine base layer was already present. This deterministic behavior allows for better management of disk space and reduces the overhead of storing duplicate layers. [1]
Docker Hub imposes rate limits on unauthenticated clients, with a maximum of 100 pulls per six hours, keyed to the IPv4 address or the IPv6 /64. This can be problematic in CI/CD environments where multiple jobs pull images from the same IP. For example, if a CI pipeline runs on a handful of machines behind one office IP and each pipeline wave pulls fifteen images across ten jobs, that results in 150 pulls, exceeding the rate limit and causing failures (Dev.to, 2026-11-10). [1]
Advertisement
A pull-through cache can significantly improve the speed of image pulls by acting as an intermediary between Docker Hub and the client machines. The cache speaks the Registry v2 API to the client machines and only communicates with Docker Hub when there is a cache miss. This setup can reduce the time taken for image pulls by a factor of ten to twenty, as demonstrated by measurements with the zot:v2.1.23 cache (Dev.to, 2026-11-10). [1]
One of the key benefits of a pull-through cache is its ability to warm itself ahead of the client. When a manifest request is made, the cache synchronizes the entire image without waiting for the client to request individual layers. This explains why cold cache pulls can be as fast as warm cache pulls, as the cache preloads images based on manifest requests (Dev.to, 2026-11-10). [1]
Docker Hub imposes rate limits on unauthenticated clients, with a maximum of 100 pulls per six hours, keyed to the IPv4 address or the IPv6 /64. This rate limit can lead to issues in environments where multiple jobs share the same IP address, such as in CI/CD pipelines. For example, if a CI system runs on a handful of machines behind one office IP and each pipeline wave pulls fifteen images across ten jobs, this results in 150 pulls, exceeding the rate limit and causing failures (Dev.to, 2026-11-10). [1]
A pull-through cache serves as an intermediary between Docker Hub and the client machines, significantly improving the speed of image pulls. It can handle the rate limit issue by acting as a single point of contact with Docker Hub, reducing the number of direct pulls from the client machines. This approach avoids the need for clients to exceed the rate limit by allowing the cache to handle the rate-limited interactions (Dev.to, 2026-11-10). [1]
Advertisement
One of the key benefits of a pull-through cache is its ability to warm itself ahead of the client. When a client requests a manifest, the cache synchronizes the image without waiting for the client to request individual layers. This means that the cache can pre-fetch and store images before the client even needs them, which results in faster cold pulls. For instance, the first pull through a cold cache did not cost additional time, as the cache automatically pre-filled the image data (Dev.to, 2026-11-10). [1]
The efficiency of a pull-through cache is further demonstrated by how it manages disk usage. The disk usage tracks the number of distinct tags requested rather than the number of containers running in production. This means that if a floating latest tag or a per-commit tag is used in CI, it adds a full image every rebuild, which accumulates over time. Therefore, it is important to size the volume based on the expected tag churn and monitor free disk space rather than cache size (Dev.to, 2026-11-10). [1]
Docker Hub imposes rate limits on unauthenticated clients, with a maximum of 100 pulls per six hours, keyed to the IPv4 address or the IPv6 /64. This can lead to issues in CI environments where multiple jobs pull images from the same IP address, potentially exceeding the rate limit and causing failures (Dev.to, 2026-11-10). [1]
A pull-through cache can serve as a solution to these rate limits by acting as an intermediary between Docker Hub and client machines. This setup can significantly improve the speed of image pulls, as demonstrated by performance measurements showing that a hit is ten to twenty times faster than a direct pull (Dev.to, 2026-11-10). [1]
Advertisement
One of the key benefits of a pull-through cache is its ability to warm itself ahead of the client. This is evident in the measurement where a cold cache did not cost anything in terms of performance, as the cache preloads images based on manifest requests without waiting for the client to request individual layers (Dev.to, 2026-11-10). [1]
The efficiency of a pull-through cache is further demonstrated by how it manages disk usage. The disk usage tracks the number of distinct tags requested rather than the number of containers running in production, and identical blobs are hardlinked across repositories, reducing the overall storage footprint (Dev.to, 2026-11-10). [1]
Sources
Prepared with AI assistance from the cited sources.
The Cali Reporter newsletter
The stories worth your time.
California, the country, and what comes next. Join our free newsletter for reporting that keeps you informed.
More in Technology
- Modern Web Guidance 1.0 and Browser Compatibility
Modern Web Guidance 1.0, announced by Chrome for Developers on November 10, introduces browser compatibility data to assist coding agents in building web features. The initiative emphasizes the importance of fallback…
- Apache mod_http2 Vulnerability Detection with Nmap
A new Nmap scripting module has been developed to detect the Apache mod_http2 vulnerability (CVE-2026-119618), addressing the challenges of identifying affected systems accurately.
- Securing Remote Vendor Access in Industrial Networks
Best practices for managing remote vendor access in operational technology (OT) networks emphasize controlled access points, multifactor authentication, and time-bound sessions to reduce cybersecurity risks.
