From b3b781a2c7104d3547c21b0378058832fcd70050 Mon Sep 17 00:00:00 2001 From: Brett Inman Date: Wed, 28 Oct 2020 13:12:42 -0700 Subject: [PATCH] Fixes auth scope in header example --- docker-hub/download-rate-limit.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-hub/download-rate-limit.md b/docker-hub/download-rate-limit.md index 0b7c7d64bd..3ecc1e7f62 100644 --- a/docker-hub/download-rate-limit.md +++ b/docker-hub/download-rate-limit.md @@ -52,13 +52,13 @@ If you have a proxy or other layer in place that logs your requests, you can ins To get a token anonymously (if you are pulling anonymously): ``` -$ TOKEN=$(curl "https://auth.docker.io/token?service=registry-1.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token) +$ TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token) ``` To get a token with a user account (if you are authenticating your pulls) - don't forget to insert your username and password in the following command: ``` -$ TOKEN=$(curl --user 'username:password' "https://auth.docker.io/token?service=registry-1.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token) +$ TOKEN=$(curl --user 'username:password' "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token) ``` Then to get the headers showing your limits, run the following (keep in mind that requesting a manifest emulates a pull and will count against the limits):