GTFOcurls
GitHub Repo stars

Docker Registry

Communicate with docker registry

#Docker Registry

#Get current catalog

curl http://<registry:port>/v2/_catalog

#Get image tags

curl http://<registry:port>/v2/<IMAGE>/tags/list

#Get minifests for an image using autorization token

curl -H "Authorization: Bearer $token" \
  "https://registry.hub.docker.com/v2/<REPOSITORY>/<IMAGE>/manifests/latest

#Get manifests

curl -fsSL \
-H 'Accept: application/vnd.docker.distribution.manifest.v2+json' \
-H 'Accept: application/vnd.docker.distribution.manifest.list.v2+json' \
-H 'Accept: application/vnd.docker.distribution.manifest.v1+json' \
"http://<registry:port>/v2/<IMAGENAME>/manifests/<DIGEST|TAG>"

#Get authorization token to be used by registry

curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:<REPOSITORY>/<IMAGE>:pull"

#Get minifests using autorization token

curl -s -H "Authorization: Bearer $token" "https://registry.hub.docker.com/v2/<REPOSITORY>/<IMAGE>/manifests/latest