Created
May 19, 2021 21:07
-
-
Save kmassada/7752d4f20e09018cd4c614cb7d9ebe89 to your computer and use it in GitHub Desktop.
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
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment