Azure Container Registry

Azure Container Registry (ACR) is a managed, private Docker registry service that you use to build, store, and manage container images and related artifacts. As a private Docker registry based on the open-source Docker Registry 2.0, Azure Container Registry offers registry instances deployed as Azure resources, supporting private Docker repository storage and all types of content in Docker, including OCI artifacts.

Tip: Azure Container Registry provides a secure and scalable solution for managing your container images within the Azure ecosystem.

Key Features and Benefits

Getting Started with Azure Container Registry

1. Create an Azure Container Registry

You can create an ACR instance using the Azure portal, Azure CLI, or Azure PowerShell.

Using Azure CLI

az acr create \
  --resource-group myResourceGroup \
  --name myRegistry \
  --sku Basic \
  --location eastus

2. Log in to your Registry

Once created, you can log in to your ACR instance from your local Docker client or from Azure services.

Using Azure CLI

az acr login --name myRegistry

3. Push a Docker Image

Tag your Docker image with your ACR login server name and push it.

Tagging and Pushing

docker tag myimage myRegistry.azurecr.io/myimage:v1
docker push myRegistry.azurecr.io/myimage:v1

4. Pull a Docker Image

Pull the image from your ACR to another machine or service.

Pulling an Image

docker pull myRegistry.azurecr.io/myimage:v1

Common Use Cases

Important: For production workloads, consider using the Standard or Premium SKU for ACR to benefit from geo-replication, private endpoints, and other advanced features.

Further Reading