Skip to content

Instantly share code, notes, and snippets.

@michaelkebe
Created December 8, 2020 20:53
Show Gist options
  • Save michaelkebe/4f279dacfb9b506ed4e3ea8ba7ab7c57 to your computer and use it in GitHub Desktop.
Save michaelkebe/4f279dacfb9b506ed4e3ea8ba7ab7c57 to your computer and use it in GitHub Desktop.
check docker hub pull rate oneliner
# requires curl, jq, grep
curl -s --head -H "Authorization: Bearer $(curl -s "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 | grep RateLimit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment