Azure Container Registry is a private cloud registry for storing and distributing images close to Azure containers. Docker clients authenticate, push, and pull through its Azure domain. section 14.2
ACR supports a practical application delivery workflow:
- Create a uniquely named registry in an Azure resource group and authenticate the Docker CLI. section 14.2
- Import images from Docker Hub, inspect manifests, and pull them from the ACR domain. section 14.2
- Build images with ACR Tasks or use imports when account limits prevent remote builds. section 14.2
- Create repository-scoped tokens so Azure Container Instances can run private images. section 14.2
# choose a DNS name and put in a variable - with PowerShell: $ACR_NAME='<unique-name>' # or Linux shell: ACR_NAME='<unique-name>' # now create the registry using the cheapest tier: az acr create -n $ACR_NAME -g diamol-ch14 --sku Basic # login to ACR - this configures authentication in the Docker CLI: az acr login -n $ACR_NAME
Use the command sequence to create a Basic-tier registry and configure Docker authentication. section 14.2
Build and run a private image
Build the hello-cloud-web image locally or with ACR Tasks, create a read-only repository token, and start the image in Azure Container Instances using registry credentials. section 14.2
