Docker Community Forums

Share and learn in the Docker community.

Registry v2 API - Tagging


(Anton Osmond) #1

Using the v1 registry and v1 registry API, I could create a PUT request to tag an existing image remotely without having the image pulled locally. As an example, if I had an image named my_app with a tag of 32, I could tag my_app:32 with another tag, lets say development so that I had two tags:
my_app:32
my_app:development
which were both pointing to the same image.
Is there anyway to do this using the v2 registry and v2 registry API?
The key requirement is that I don’t want to have to pull a local copy of the image first, I want to tag it in the registry directly.