Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hub/billing: cleanup hub pull docs #22133

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions content/manuals/docker-hub/usage/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ user type, subject to fair use:
| Personal (authenticated) | 100 | Unlimited | Up to 1 |
| Unauthenticated users | 10 per IPv4 address or IPv6 /64 subnet | Not applicable | Not applicable |

For more details, see the following:

- [Pull usage and limits](./pulls.md)
- [Docker Hub repositories](./repositories.md)
For more details, see [Pull usage and limits](./pulls.md).

## Fair use

Expand Down
15 changes: 9 additions & 6 deletions content/manuals/docker-hub/usage/pulls.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ keywords: Docker Hub, pulls, usage, limit
title: Docker Hub pull usage and limits
linkTitle: Pulls
weight: 10
aliases:
- /docker-hub/usage/storage/
- /docker-hub/usage/repositories/
---

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

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

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

```text
ratelimit-limit: 100;w=21600
ratelimit-remaining: 76;w=21600
ratelimit-limit: 100;w=3600
ratelimit-remaining: 20;w=3600
docker-ratelimit-source: 192.0.2.1
```

In the previous example, the pull limit is 100 pulls per 21600 seconds (6
hours), and there are 76 pulls remaining.
In the previous example, the pull limit is 100 pulls per 3600 seconds (1
hour), and there are 20 pulls remaining.

If you don't see any `ratelimit` header, it could be because the image or your IP
is unlimited in partnership with a publisher, provider, or an open source
Expand Down
22 changes: 0 additions & 22 deletions content/manuals/docker-hub/usage/repositories.md

This file was deleted.