Friday, September 6, 2019

Managing a simple Azure Container Registry

Azure Container Registry provides an excellent support for maintaining and distributing containers across multiple regions. But for this article, lets focus on a simpler container registry where my requirement is likely to host a few services on a Kubernetes Cluster. 

Publishing to Container Registry


You can simply use PowerShell. A sample code for uploading a local docker image to ACR can be done with the following command. 

First you need to login to Azure using az login command. Then,

az acr login -n <ContainerRegistryName>
docker tag <LocalImageName>:<LocalTag> <ACRName>.azurecr.io/<Repository>:<Tag>
docker push <ACRName>.azurecr.io/<Repository>:<Tag>