liveBook · Manning

Microsoft Container Registry

As explained in Learn Docker in a Month of Lunches, Second Edition

Azure Container Registry is Microsoft's managed private registry service for storing, securing, building, and distributing container images.

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

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Covers creation, authentication, import, manifest inspection, builds, repository tokens, deployment, and cleanup through commands.
Examples
Uses Docker Hub imports, local and ACR builds, manifest inspection, repository tags, and a web container running in ACI.
What it assumes
Assumes a Docker command-line workflow and an Azure resource group, while demonstrating registry setup and authentication commands.
What you can do after
Operate/configure a private ACR registry, move images into it, build images, and run them securely in Azure Container Instances.
How it connects
Connects private container registries with Docker Hub, Docker CLI, ACR Tasks, Azure Container Instances, and cloud identity providers.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.