Created
May 19, 2021 21:07
-
-
Save kmassada/7752d4f20e09018cd4c614cb7d9ebe89 to your computer and use it in GitHub Desktop.
Revisions
-
kmassada created this gist
May 19, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ REGISTRY=https://index.docker.io/v2 REPO=library IMAGE=debian TAG=latest TOKEN=$(curl -sSL "https://auth.docker.io/token?service=registry.docker.io&scope=repository:$REPO/$IMAGE:pull" \ | jq --raw-output .token) curl -LH "Authorization: Bearer ${TOKEN}" "$REGISTRY/$REPO/$IMAGE/manifests/$TAG"