Linux command
az-acr 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create a container registry
az acr create -n [registry-name] -g [resource-group] --sku [Standard]
Log in
az acr login -n [registry-name]
List all registries
az acr list -o table
Build and push an image
az acr build -t [image:tag] -r [registry-name] [./source-directory]
Import an image
az acr import -n [registry-name] --source [source-registry.azurecr.io/repo:tag]
List repositories
az acr repository list -n [registry-name] -o table
Show registry details
az acr show -n [registry-name]
Check registry health
az acr check-health -n [registry-name]
说明
az acr manages Azure Container Registries (ACR), a private Docker registry service for storing and managing container images. ACR integrates with Azure Kubernetes Service, App Service, and other Azure services. The command group supports registry creation, image management, authentication, geo-replication, automated builds with ACR Tasks, and advanced features like artifact streaming and supply chain security.
参数
- -n, --name _value_
- Name of the container registry
- -g, --resource-group _value_
- Name of the resource group
- --sku _value_
- Registry SKU: Basic, Standard, or Premium
- -t, --image _value_
- Image name and tag (name:tag format)
- -r, --registry _value_
- Registry name for build operations
FAQ
What is the az-acr command used for?
az acr manages Azure Container Registries (ACR), a private Docker registry service for storing and managing container images. ACR integrates with Azure Kubernetes Service, App Service, and other Azure services. The command group supports registry creation, image management, authentication, geo-replication, automated builds with ACR Tasks, and advanced features like artifact streaming and supply chain security.
How do I run a basic az-acr example?
Run `az acr create -n [registry-name] -g [resource-group] --sku [Standard]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --name _value_ do in az-acr?
Name of the container registry