Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Container Registry ACR How to add tag to image?

I see you can untag an image in an Azure Container Registry

https://learn.microsoft.com/en-us/cli/azure/acr/repository?view=azure-cli-latest#az-acr-repository-show-manifests

But how do you add a tag?

like image 243
Novaterata Avatar asked Nov 14 '18 22:11

Novaterata


2 Answers

You can use import command to import the image in the same repository:

az acr import --name myacr --source myacr.azurecr.io/myimage:latest --image myimage:retagged --force
like image 174
yfried Avatar answered Oct 14 '22 03:10

yfried


As far as I know. There is no Azure CLI command to create a tag for the images directly. If you want to add a tag for the image, you just can use the docker command docker tag to add the tag and then push the image to Azure Container Registry.

When you create the image through the build task, it also will lead to the tag adding. Take a look at this.

like image 5
Charles Xu Avatar answered Oct 14 '22 04:10

Charles Xu