Skip to content

Instantly share code, notes, and snippets.

@mjmenger
Last active March 23, 2021 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjmenger/44b12f56d95f9250fb6dece0d9c69c35 to your computer and use it in GitHub Desktop.
Save mjmenger/44b12f56d95f9250fb6dece0d9c69c35 to your computer and use it in GitHub Desktop.
Docker Tricks

Find out what your Docker Hub pull limit is and how much is remaining

TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)

curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest 2>&1 | grep RateLimit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment