Skip to content

Curl to GCR/ AR

What

This page is to help you curl to Google Hosted container registries

How

curl \
  -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://europe-west2-docker.pkg.dev/v2/<project name>/<repo name>/<container name>/tags/list" | jq ".tags"
curl \
  -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  "https://eu.gcr.io/v2/<project name>/<repo name>/tags/list" | jq ".tags"

Resources


Want to make this site better? Open a PR or help fund hosting costs