Azure 容器注册表 SKUAzure Container Registry SKUs

Azure 容器注册表 (ACR) 分为多个服务层级(称为“SKU”)。Azure Container Registry (ACR) is available in multiple service tiers, known as SKUs. 这些 SKU 提供可预测的定价和多个选项,用来适应你在 Azure 中的专用 Docker 注册表的容量和使用模式。These SKUs provide predictable pricing and several options for aligning to the capacity and usage patterns of your private Docker registry in Azure.

SKUSKU 托管Managed 说明Description
基本Basic Yes 供开发者了解 Azure 容器注册表的入口点(已优化过成本)。A cost-optimized entry point for developers learning about Azure Container Registry. 基本注册表的编程功能(例如 Azure Active Directory 身份验证集成映像删除Webhook)与标准注册表和高级注册表相同。Basic registries have the same programmatic capabilities as Standard and Premium (such as Azure Active Directory authentication integration, image deletion, and webhooks). 但其附带的存储和映像吞吐量最适合使用较少的场景。However, the included storage and image throughput are most appropriate for lower usage scenarios.
标准Standard Yes 标准注册表的功能与基本注册表相同。不同之处在于,前者附带更多的存储和映像吞吐量。Standard registries offer the same capabilities as Basic, with increased included storage and image throughput. 标准注册表应能够满足大部分生产方案的需求。Standard registries should satisfy the needs of most production scenarios.
高级Premium Yes 高级注册表附带的存储和并发操作数最多,支持大容量方案。Premium registries provide the highest amount of included storage and concurrent operations, enabling high-volume scenarios. 除增加了映像吞吐量外,高级注册表还增添了其他功能,包括异地复制可用于跨多个区域管理一个注册表。In addition to higher image throughput, Premium adds features including geo-replication for managing a single registry across multiple regions.
经典(在 2019 年 4 月后不可用Classic (not available after April 2019) No 此 SKU 在 Azure 中启用了初始版 Azure 容器注册表服务。This SKU enabled the initial release of the Azure Container Registry service in Azure. 经典注册表由 Azure 在订阅中创建的存储帐户提供支持,这会限制 ACR 提供更高级功能,如增加吞吐量和异地复制。Classic registries are backed by a storage account that Azure creates in your subscription, which limits the ability for ACR to provide higher-level capabilities such as increased throughput and geo-replication.

Important

经典注册表 SKU 即将弃用2019 年 4 月之后将不可用。The Classic registry SKU is being deprecated, and will be unavailable after April 2019. 对于所有新的注册表,建议使用基本、标准或高级 SKU。We recommend using Basic, Standard, or Premium for all new registries. 应在 2019 年 4 月之前升级所有现有的经典注册表。All existing Classic registries should be upgraded prior to April 2019. 有关升级信息,请参阅升级经典注册表For upgrade information, see Upgrade a Classic registry.

基本、标准和高级 SKU(统称为“托管注册表” )全都提供相同的编程功能。The Basic, Standard, and Premium SKUs (collectively called managed registries) all provide the same programmatic capabilities. 它们也全都从完全由 Azure 托管的映像存储中受益。They also all benefit from image storage managed entirely by Azure. 选择的 SKU 级别越高,性能和可缩放性就越高。Choosing a higher-level SKU provides more performance and scale. 使用多个服务层级,你可以从“基本”层级开始,然后随着注册表使用量增长转换到“标准”和“高级”层级。With multiple service tiers, you can get started with Basic, then convert to Standard and Premium as your registry usage increases.

SKU 功能矩阵SKU feature matrix

下表详细介绍了“基本”、“标准”和“高级”服务层级的功能和限制。The following table details the features and limits of the Basic, Standard, and Premium service tiers.

资源Resource 基本Basic 标准Standard 高级Premium
存储1Storage1 10 GiB10 GiB 100 GiB100 GiB 500 GiB500 GiB
最大映像层大小Maximum image layer size 200 GiB200 GiB 200 GiB200 GiB 200 GiB200 GiB
每分钟读取操作数2、3ReadOps per minute2, 3 1,0001,000 3,0003,000 10,00010,000
每分钟写入操作数2、4WriteOps per minute2, 4 100100 500500 2,0002,000
下载带宽 (MBps)2Download bandwidth MBps2 3030 6060 100100
上传带宽 (MBps)2Upload bandwidth MBps2 10 个10 2020 5050
WebhookWebhooks 22 1010 100100
异地复制Geo-replication 不适用N/A 不适用N/A 受支持Supported

1 指定的存储上限是每层包含 的存储量。1The specified storage limits are the amount of included storage for each tier. 对于超出这些限制的图像存储,将每日针对每 GiB 进行额外收费。You're charged an additional daily rate per GiB for image storage above these limits. 有关费率的信息,请参阅 Azure 容器注册表定价For rate information, see Azure Container Registry pricing.

2读取操作数写入操作数带宽是最小估计值。2ReadOps, WriteOps, and Bandwidth are minimum estimates. Azure 容器注册表根据使用需求努力提高性能。Azure Container Registry strives to improve performance as usage requires.

3docker pull 根据映像中的层数和清单检索行为转换为多个读取操作。3A docker pull translates to multiple read operations based on the number of layers in the image, plus the manifest retrieval.

4docker push 根据必须推送的层数转换为多个写入操作。4A docker push translates to multiple write operations, based on the number of layers that must be pushed. docker push 包含 ReadOps ,用于检索现有映像的清单。A docker push includes ReadOps to retrieve a manifest for an existing image.

更改 SKUChanging SKUs

可以通过 Azure CLI 或在 Azure 门户中更改注册表的 SKU。You can change a registry's SKU with the Azure CLI or in the Azure portal. 你可以自由地在各种托管的 SKU 之间切换,只要你要切换到的 SKU 具有所需的最大存储容量即可。You can move freely between managed SKUs as long as the SKU you're switching to has the required maximum storage capacity. 如果从经典 SKU 切换到托管的 SKU 之一,则无法切换回经典 SKU,因为这是一个单向转换。When you switch to one of the managed SKUs from Classic, you cannot move back to Classic--it is a one-way conversion.

Azure CLIAzure CLI

若要使用 Azure CLI 在各种 SKU 之间切换,请使用 az acr update 命令。To move between SKUs in the Azure CLI, use the az acr update command. 例如,若要切换到高级 SKU,请使用以下命令:For example, to switch to Premium:

az acr update --name myregistry --sku Premium

Azure 门户Azure portal

在 Azure 门户中的容器注册表“概述” 中,选择“更新” ,然后从“SKU”下拉列表中选择一个新 SKU 。In the container registry Overview in the Azure portal, select Update, then select a new SKU from the SKU drop-down.

在 Azure 门户中更新容器注册表 SKU

如果你有经典注册表,则无法在 Azure 门户中选择托管的 SKU。If you have a Classic registry, you can't select a managed SKU within the Azure portal. 而是必须先升级到托管的注册表。Instead, you must first upgrade to a managed registry.

定价Pricing

有关每个 Azure 容器注册表 SKU 的定价信息,请参阅容器注册表定价For pricing information on each of the Azure Container Registry SKUs, see Container Registry pricing.

有关数据传输定价的详细信息,请参阅带宽定价详细信息For details about pricing for data transfers, see Bandwidth Pricing Details.

后续步骤Next steps

Azure 容器注册表 UserVoiceAzure Container Registry UserVoice

ACR UserVoice 中提交新功能建议。Submit on new feature suggestions in ACR UserVoice.