您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

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 how you wish to use your private Docker registry in Azure. 选择的 SKU 级别越高,性能和可缩放性就越高。Choosing a higher-level SKU provides more performance and scale. 不过,所有 SKU 提供的编程功能都相同,以便于开发者可以从基本注册表入手,然后随着注册表使用情况增多改用标准注册表和高级注册表。However, all SKUs provide the same programmatic capabilities, enabling a developer to get started with Basic, and convert to Standard and Premium as registry usage increases.

基本Basic

供开发者了解 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 (Azure Active Directory authentication integration, image deletion, and web hooks), however, there are size and usage constraints.

标准Standard

标准注册表的功能与基本注册表相同。不同之处在于,前者增加了存储空间上限和映像吞吐量。Standard registries offer the same capabilities as Basic, with increased storage limits and image throughput. 标准注册表应能够满足大部分生产方案的需求。Standard registries should satisfy the needs of most production scenarios.

高级Premium

高级注册表对存储和并发操作等功能的约束限制更高,支持大容量方案。Premium registries provide higher limits on constraints such as storage and concurrent operations, enabling high-volume scenarios. 除了增加映像吞吐量之外,高级注册表还增添了其他功能(如异地复制,用于跨多个区域管理一个注册表,并在每个部署中维护网络封闭注册表)。In addition to higher image throughput capacity, Premium adds features like geo-replication for managing a single registry across multiple regions, maintaining a network-close registry to each deployment.

经典Classic

经典注册表 SKU 在 Azure 中启用了首版 Azure 容器注册表。The Classic registry 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. 由于功能有限,我们计划在未来弃用经典 SKU。Because of its limited capabilities, we plan to deprecate the Classic SKU in the future.

备注

由于我们已计划弃用经典注册表 SKU,因此建议对所有新注册表使用基本、标准或高级 SKU。Because of the planned deprecation of the Classic registry SKU, we recommend you use Basic, Standard, or Premium for all new registries. 若要了解如何转换现有经典注册表,请参阅更改 SKUFor information about converting your existing Classic registry, see Changing SKUs.

注册表 SKU 功能矩阵Registry SKU feature matrix

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

资源Resource 基本Basic 标准Standard 高级Premium
存储Storage 10 GiB10 GiB 100 GiB100 GiB 500 GiB500 GiB
每分钟读取操作数1、2ReadOps per minute1, 2 1,0001k 300,000300k 10,000,00010,000k
每分钟写入操作数1、3WriteOps per minute1, 3 100100 500500 2,0002k
下载带宽 (MBps)1Download bandwidth MBps1 3030 6060 100100
上传带宽 (MBps)1Upload bandwidth MBps1 1010 2020 5050
WebhookWebhooks #N/A2 1010 100100
异地复制Geo-replication 不适用N/A 不适用N/A 支持(预览版)Supported (preview)

1读取操作数、写入操作数和带宽是最小估计值。1 ReadOps, WriteOps, and Bandwidth are minimum estimates. ACR 旨在随使用情况增多提升性能。ACR strives to improve performance as usage requires.

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

3docker push 根据必须推送的层数转换为多个写入操作。3 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.

管理注册表大小Manage registry size

每个 SKU 的存储约束旨在与典型方案保持一致,即基本 SKU 适用于入门,标准 SKU 适用于大部分生产应用程序,高级 SKU 适用于超大规模提升性能和异地复制The storage constraints of each SKU are intended to align with a typical scenario: Basic for getting started, Standard for the majority of production apps, and Premium for hyper-scale performance and geo-replication. 在注册表的整个生命周期中,应定期删除未使用的内容,管理注册表大小。Throughout the life of your registry, you should manage its size by periodically deleting unused content.

在 Azure 门户的容器注册表“概述”中,可以查看注册表的当前使用情况:You can find the current usage of a registry in the container registry Overview in the Azure portal:

Azure 门户中的注册表使用情况信息

可以在 Azure 门户中删除存储库,管理注册表大小。You can manage the size of your registry by deleting repositories in the Azure portal.

在“服务”下,选择“存储库”,右键单击要删除的存储库,再选择“删除”。Under SERVICES, select Repositories, then right-click the repository you want to delete, then select Delete.

在 Azure 门户中删除存储库

更改 SKUChanging SKUs

可以在 Azure 门户中更改注册表 SKU。You can change a registry's SKU in the Azure portal.

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

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

转换经典注册表Changing from Classic

将经典注册表转换为基本、标准或高级注册表时,Azure 将现有容器映像从订阅中的关联存储帐户复制到 Azure 托管的存储帐户中。When you change a Classic registry to Basic, Standard, or Premium, Azure copies existing container images from the associated storage account in your subscription to a storage account managed by Azure. 此过程可能需要一段时间才能完成。This process can take some time.

在转换期间,docker pull 可以继续正常运行,而 docker push 则在转换完成前遭屏蔽。During conversion, docker pull continues to function, however, docker push is blocked until conversion is complete.

完成后,ACR 便不再使用订阅存储帐户。Once completed, the subscription storage account is no longer used by ACR.

为什么要将经典注册表转换为基本、标准或高级注册表?Why change from Classic to Basic, Standard, or Premium?

由于经典注册表的功能有限,因此建议将经典注册表转换为基本、标准或高级服务层。Because of the limited capabilities of Classic registries, we recommend that you change your Classic registries to Basic, Standard, or Premium tiers. 这些更高级 SKU 将注册表更深入地集成到 Azure 功能中。These higher-level SKUs more deeply integrate the registry into the capabilities of Azure. 其中部分功能包括:Some of these capabilities include:

最重要的是,经典注册表依赖 Azure 在用户创建注册表时在 Azure 订阅中自动预配的存储帐户。Most of all, a Classic registry depends on the storage account that Azure automatically provisioned in your Azure subscription when you created the registry. 相比之下,基本、标准和高级 SKU 利用的是托管存储。By contrast, the Basic, Standard, and Premium SKUs take advantage of managed storage. 也就是说,Azure 在透明的状态下为用户管理映像存储,即利用不是在自己的订阅中创建的单独存储帐户。That is, Azure transparently manages the storage of your images for you--a separate storage account is not created in your own subscription.

基本、标准和高级注册表利用管理存储带来了下面一些优势:Some of the benefits of managed storage provided by Basic, Standard, and Premium registries:

  • 容器映像静态加密Container images are encrypted at rest.
  • 映像使用异地冗余存储进行存储,以确保通过多区域复制备份映像。Images are stored using geo-redundant storage, assuring backup of your images with multi-region replication.
  • 可以切换 SKU,在选择更高级 SKU 时支持更大吞吐量。Ability to move to between SKUs, enabling higher throughput when you choose a higher-level SKU. 对于每个 SKU,ACR 都可以用户需求增加时满足吞吐量需求。With each SKU, ACR can meet your throughput requirements as your needs increase. 有关 ACR 如何达到相应吞吐量目标的基础实现表示成意向(通过选择更高级 SKU),用户无需管理实现的详细信息。The underlying implementation of how ACR achieves the desired throughput is expressed as intent (by selecting higher SKUs), without you having to manage the details of the implementation.

定价Pricing

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

后续步骤Next steps

Azure 容器注册表路线图Azure Container Registry Roadmap

请访问 GitHub 上的 ACR 路线图,了解服务即将推出的新功能。Visit the ACR Roadmap on GitHub to find information about upcoming features in the service.

Azure 容器注册表 UserVoiceAzure Container Registry UserVoice

请在 ACR UserVoice 中提交新功能建议,并对这些功能建议投票。Submit and vote on new feature suggestions in ACR UserVoice.