Skip to content

Instantly share code, notes, and snippets.

View kosu9i's full-sized avatar

こすぎ kosu9i

View GitHub Profile
@kosu9i
kosu9i / check_dockerhub_pull_limitation.md
Last active November 7, 2020 01:02
One-liner for checking my limitation of Docker Hub pull

Require jq command

cf. Download rate limit

For anonymous user

$ curl --head -H "Authorization: Bearer $(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest 2>&1 | grep RateLimit

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current