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

Docker hub rate-limit / authentication of list-tags/repository calls #21267

Open
sizowie opened this issue Dec 2, 2024 · 3 comments
Open

Docker hub rate-limit / authentication of list-tags/repository calls #21267

sizowie opened this issue Dec 2, 2024 · 3 comments
Assignees

Comments

@sizowie
Copy link

sizowie commented Dec 2, 2024

Hi there,

we're constantly hitting the Docker Hub rate limit with an paid account/subscription. As for now our usage is around 50% of the allowed pulls/day (5.000) with hundreds of replications distributed over the whole day.

Therefore I'm wondering if pre-pull actions of Harbor like checking repository and tags for existence on remote side are also made authenticated with supplied Registry credentials or not?

2024-12-02T00:00:22Z [ERROR] [/pkg/reg/adapter/dockerhub/adapter.go:452]: list tags error: 429 -- {"detail": "Rate limit exceeded", "error": false}
...
2024-12-02T00:00:22Z [ERROR] [/pkg/reg/adapter/dockerhub/adapter.go:425]: list repos error: 429 -- {"detail": "Rate limit exceeded", "error": false}
...

Thank you!
Cheers, Janek

Versions:

  • harbor version: v2.10.2
  • docker engine version: 26.1.4
  • docker-compose version: v2.24.1
@Vad1mo Vad1mo added kind/requirement New feature or idea on top of harbor area/proxy-cache labels Dec 3, 2024
@Vad1mo
Copy link
Member

Vad1mo commented Dec 3, 2024

Docker Hub as changed the rate limits in Nov. There are quite a few issues regarding proxy-cache rate limit.

We should investigate the PR #19984

@stonezdj
Copy link
Contributor

stonezdj commented Dec 9, 2024

Yes, it uses the credentials provided.
You should follow this guide to check the rate limit: https://docs.docker.com/docker-hub/download-rate-limit/#rate-limit
The list tag will consume the quota.
Retry doesn't make sense for current issue.

@wy65701436
Copy link
Contributor

According to the official Docker documentation, listing tags and repositories should not consume the pull count quota.

@sizowie, have you confirmed this with the upstream registry? I believe we can't take further action until we have a clear understanding of the situation.

@wy65701436 wy65701436 removed kind/requirement New feature or idea on top of harbor area/proxy-cache labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants