Easy Ways to Push to Azure Container Registry (Azure ACR)

What is the easiest way to push to an Azure ACR Repo?


Hi, if you are like me you have certainly had to deal with pushing to Azure ACR. And, if like me you don’t do this on a regular basis it always feels like a pain to go back through the Azure Documentation (which is almost always over-complicated) or to communicate the method to your developers.

So, I have listed two easy methods to push your Docker Images to an Azure ACR Repo.

Create a Repo

I’m not going to go into the specifics of how to do this as it is outside of the scope of this article, but if you need help check the Azure Docs or other Medium Articles.

Once created you should make sure to enable the Admin User access in Container Registry -> Access Keys (see picture below) and then you can follow one of the two methods below to push to your repo.

Push via Standard Docker Commands

This is the easiest way I have found to push your image to an ACR. Works on linux, mac, and windows.

Go to your Container Registry -> Access Keys

Passwords is cut off of this screenshot but it should be self explanatory

Take the information on this page and plug it into the below code

docker login <LoginServer>.azurecr.io -u <Username> -p <Password>docker tag <LocalImageName> <LoginServer>.azurecr.io/<path>/<name>docker push <LoginServer>.azurecr.io/<path>/<name>

Following this your Image should be in the Repo!

Push via Azure CLI

If you are working on a computer/server that already has the Azure CLI installed you can follow the steps below to push to your ACR.

az login
az acr login --name <RegistryName>

From here you should be able to use the same commands as above to push your image to the ACR Repo.

docker tag <LocalImageName> <LoginServer>.azurecr.io/<path>/<name>docker push <LoginServer>.azurecr.io/<path>/<name>


Azure ACR is a diverse and powerful tool for integrating Docker images into your production systems whether that is through webapps, Azure Kubernetes Service (AKS), or through standard container hub functions.

Thanks for reading!

If you have any questions or feedback please reach out to me on twitter @wtothdev or leave a comment!

If you aren’t already a Medium Member you can Join here!




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Exception Handling in Java


Setting up Salesforce Environment

CS 371p Spring 2021: Brinda Prasad

How to Convert a Physical Linux Server to a VM with NAKIVO Backup & Replication

Day 38: Understanding Core Unix Components and their Historical Security Issues (binutils)

Django rest framework Part 1 : Custom User model

100 Days of code (Day 4)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Will Toth

Will Toth

More from Medium

Blob triggered function deployed with Azure DevOps

How to access custom attributes from Azure AD-B2C using Graph API(s)

Monitoring Azure Functions with Azure Monitor & Application Insights

Developing a File Sharing Platform using Azure! (PRACTICAL)