CmdID

CmdID / Commands

az-acr

Manage private registries with Azure Container Registries. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Manage private registries with Azure Container Registries. Part of azure-cli (also known as az).

Create a managed container registry

az acr create --name registry_name --resource-group resource_group --sku skuIdentify
--nameThe name of the container registry. Azure CLI reference
--resource-groupName of resource group. Azure CLI reference
--skuThe SKU of the container registry Azure CLI reference

Log in to a registry

az acr login --name registry_nameIdentify
--nameThe name of the container registry. Azure CLI reference

Tag a local image for ACR

docker tag image_name registry_name.azurecr.io/image_name:tagIdentify

Push an image to a registry

docker push registry_name.azurecr.io/image_name:tagIdentify

Pull an image from a registry

docker pull registry_name.azurecr.io/image_name:tagIdentify

Delete an image from a registry

az acr repository delete --name registry_name --repository image_name:tagIdentify
--nameThe name of the container registry. Azure CLI reference
--repositoryThe name of the repository. Azure CLI reference

Delete a managed container registry

az acr delete --name registry_name --resource-group resource_group --yesIdentify
--nameThe name of the container registry. Azure CLI reference
--resource-groupName of resource group. Azure CLI reference
--yesDo not prompt for confirmation. Azure CLI reference

List images within a registry

az acr repository list --name registry_name --output tableIdentify
--nameThe name of the container registry. Azure CLI reference
--outputOutput format Azure CLI reference