I read about registry v2 api, Registry | Docker Docs
I have some code below to get access token from my repos in docker hub, but it seems I only have pull access instead of pull and push access.
Should I do login then I can get push access and what apis to do login, please?
REGISTRY=https://registry.hub.docker.com/v2
URI=“$REGISTRY/$REPO/manifests/$TAG”
echo “URI:” $URI
MANIFEST=“curl -sL -o /dev/null -D- $URI
”
CHALLENGE=“grep "Www-Authenticate" <<<"$MANIFEST"
”
echo $CHALLENGE