Skip to content

Commit 1f684b9

Browse files
hub/billing: cleanup hub pull docs (#22133)
## Description Cleanup from DH pull limit updates: - Removed redundant page - Added redirects for removed page: `repositories.md` - Updated the DH limit example to be in line with new limits + small grammar nit ## Related issues or tickets - https://docker.atlassian.net/browse/ENGDOCS-2455 - #22132 ## Reviews - [ ] Editorial review
1 parent 8db8f5f commit 1f684b9

File tree

3 files changed

+10
-32
lines changed

3 files changed

+10
-32
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ user type, subject to fair use:
2222
| Personal (authenticated) | 100 | Unlimited | Up to 1 |
2323
| Unauthenticated users | 10 per IPv4 address or IPv6 /64 subnet | Not applicable | Not applicable |
2424

25-
For more details, see the following:
26-
27-
- [Pull usage and limits](./pulls.md)
28-
- [Docker Hub repositories](./repositories.md)
25+
For more details, see [Pull usage and limits](./pulls.md).
2926

3027
## Fair use
3128

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ keywords: Docker Hub, pulls, usage, limit
44
title: Docker Hub pull usage and limits
55
linkTitle: Pulls
66
weight: 10
7+
aliases:
8+
- /docker-hub/usage/storage/
9+
- /docker-hub/usage/repositories/
710
---
811

912
{{% include "hub-limits.md" %}}
@@ -181,8 +184,8 @@ To view your current pull rate and limit:
181184
$ TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
182185
```
183186

184-
- To get a token with a user account, if you are authenticated (insert your
185-
username and password in the following command):
187+
- To get a token with a user account, if you are authenticated, insert your
188+
username and password in the following command:
186189

187190
```console
188191
$ TOKEN=$(curl --user 'username:password' "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
@@ -200,13 +203,13 @@ To view your current pull rate and limit:
200203
3. Examine the headers. You should see the following headers.
201204

202205
```text
203-
ratelimit-limit: 100;w=21600
204-
ratelimit-remaining: 76;w=21600
206+
ratelimit-limit: 100;w=3600
207+
ratelimit-remaining: 20;w=3600
205208
docker-ratelimit-source: 192.0.2.1
206209
```
207210

208-
In the previous example, the pull limit is 100 pulls per 21600 seconds (6
209-
hours), and there are 76 pulls remaining.
211+
In the previous example, the pull limit is 100 pulls per 3600 seconds (1
212+
hour), and there are 20 pulls remaining.
210213

211214
If you don't see any `ratelimit` header, it could be because the image or your IP
212215
is unlimited in partnership with a publisher, provider, or an open source

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

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)