acr
acr copied to clipboard
Add tags to existing images
What is the problem you're trying to solve We would like to be able to add tags to images after they have been uploaded to the ACR. The reason for this is that we upload images, test them and then need to be able to tag them as stable.
Describe the solution you'd like The addition of a command which would allow the user to specify the image manifest/existing tag and then add a tag to the manifest. Maybe as an extension to az acr repository update or as its own command (az acr repository tag).
You could use acr import: https://aka.ms/acr/import to achieve this as we recognize the manifest is the same and simply add the tags. Best of all, it’s a server side api so no docker client is required
The problem with the import statement is that it isn't intuitive, especially when coming from the Docker tools where the tag command is available to re-tag images
I have stumbled across this issue too; whilst I have been able to use the "az acr import" command to import an image and write back the image (with a "latest" tag) to the same registry, it does seem a bit of an oversight to not be able to do more simply with a tag command in the az cli - or even to be able to manage in the portal.
Can we get this basic tag function? It is really a hack to have to reimport an image that is already up there just to set a tag. Tagging is a basic function of an ACR.
I too think this would be a great feature to have
+1 on this. Importing is hack, and also take a lot more time than just a tagging. I guess that there is also a cost involved to import an image.
This might be an option as well https://oras.land/docs/commands/oras_tag