Search code examples
azure-cliazure-container-registry

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?


Solution

  • 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.