Skip to content

Commit 21f28eb

Browse files
hub: clarify ipv6 abuse rate limiting
Signed-off-by: Craig <[email protected]>
1 parent ca93b58 commit 21f28eb

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

content/manuals/docker-hub/usage/_index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ exhibiting excessive data and storage consumption.
4545

4646
Docker Hub has an abuse rate limit to protect the application and
4747
infrastructure. This limit applies to all requests to Hub properties including
48-
web pages, APIs, and image pulls. The limit is applied per-IP, and while the
49-
limit changes over time depending on load and other factors, it's in the order
50-
of thousands of requests per minute. The abuse limit applies to all users
51-
equally regardless of account level.
48+
web pages, APIs, and image pulls. The limit is applied per IPv4 address or per
49+
IPv6 /64 subnet, and while the limit changes over time depending on load and
50+
other factors, it's in the order of thousands of requests per minute. The abuse
51+
limit applies to all users equally regardless of account level.
5252

5353
You can differentiate between the pull rate limit and abuse rate limit by
5454
looking at the error code. The abuse limit returns a simple `429 Too Many

content/manuals/docker-hub/usage/pulls.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,23 @@ If you're using any third-party platforms, follow your provider’s instructions
133133
- [LayerCI](https://layerci.com/docs/advanced-workflows#logging-in-to-docker)
134134
- [TeamCity](https://www.jetbrains.com/help/teamcity/integrating-teamcity-with-docker.html#Conforming+with+Docker+download+rate+limits)
135135

136+
## Rate limiting on third-party platforms
137+
138+
When pulling images via a third-party platform, the platform may use the same
139+
IPv4 address or IPv6 /64 subnet to pull images for multiple users. Even if you
140+
are authenticated, pulls attributed to a single IPv4 address or IPv6 /64 subnet
141+
may cause [abuse rate limiting](./_index.md#abuse-rate-limit).
142+
143+
This issue is more common when using IPv6. To workaround the issue, you can
144+
disable IPv6 in the Docker daemon. Use the following to disable IPv6 in Docker Engine or
145+
Docker Desktop.
146+
- Docker Engine: Add the `"ipv6": false` key and value in your
147+
[`daemon.json`
148+
file](/reference/cli/dockerd/#daemon-configuration-file). Restart Docker after
149+
modifying the configuration.
150+
- Docker Desktop: Add the `"ipv6": false` key and value in your [Docker Engine settings](/manuals/desktop/settings-and-maintenance/settings.md#docker-engine). Restart Docker after modifying the
151+
configuration.
152+
136153
## View monthly pulls and included usage
137154

138155
You can view your monthly pulls on the [Usage page](https://hub.docker.com/usage/pulls) in Docker Hub.
@@ -153,7 +170,6 @@ separated file with the following detailed information.
153170
| `version_checks` | The number of version checks accumulated for the date and hour of each image repository. Depending on the client, a pull can do a version check to verify the existence of an image or tag without downloading it. | This helps identify the frequency of version checks, which you can use to analyze usage trends and potential unexpected behaviors. |
154171
| `pulls` | The number of pulls accumulated for the date and hour of each image repository. | This helps identify the frequency of repository pulls, which you can use to analyze usage trends and potential unexpected behaviors. |
155172

156-
157173
## View hourly pull rate and limit
158174

159175
The pull rate limit is calculated on a per hour basis. There is no pull rate
@@ -215,4 +231,5 @@ To view your current pull rate and limit:
215231
is unlimited in partnership with a publisher, provider, or an open source
216232
organization. It could also mean that the user you are pulling as is part of a
217233
paid Docker plan. Pulling that image won't count toward pull rate limits if you
218-
don't see these headers.
234+
don't see these headers.
235+

0 commit comments

Comments
 (0)