All Products
Search
Document Center

Container Registry:Use a shared VPC to enable cross-account access to a Container Registry Enterprise Edition instance

Last Updated:Mar 26, 2026

When applications in Account A need to pull images from Container Registry Enterprise Edition instances owned by Account B, routing traffic over the public internet increases latency and exposes image transfers to external networks. The VPC sharing feature lets multiple Alibaba Cloud accounts create resources in a shared, centrally managed virtual private cloud (VPC), so Account A can pull images from Account B's Enterprise Edition instances entirely over the private network.

Prerequisites

Before you begin, make sure you have:

Limitations

VPC sharing has specific constraints that apply to cross-account access. Review the VPC sharing limitations before proceeding.

Configure cross-account VPC access for an Enterprise Edition instance

Important

Perform all steps in this section using Account B — the account that owns the Enterprise Edition instance.

  1. Log on to the Container Registry console.

  2. In the top navigation bar, select a region.

  3. In the left-side navigation pane, click Instances.

  4. On the Instances page, click the Enterprise Edition instance you want to configure.

  5. In the left-side navigation pane of the instance management page, choose Repository > Access Control.

  6. On the VPC tab of the Access Control page, click Add VPC.

  7. In the Add VPC dialog box, select the VPC and vSwitch that belong to Account A, then click Confirm. Wait until the Status of the VPC and vSwitch changes to Running.

Next steps

For more information about the VPC sharing feature, see VPC sharing.

References