Created
December 8, 2020 20:53
-
-
Save michaelkebe/4f279dacfb9b506ed4e3ea8ba7ab7c57 to your computer and use it in GitHub Desktop.
check docker hub pull rate oneliner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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