Container Registry usage guide

Updated at:

ACK is integrated with Alibaba Cloud Container Registry (ACR) to provide an image repository service for managing your private images. This topic describes the best practices for using ACR with ACK.

Edition selection

Container Registry (ACR) offers two editions: Default Instance and Enterprise. These editions have different features, specifications, and application scenarios. For more information, see Specifications.

  • The Default Instance edition provides basic container image services, including secure image hosting, security scanning, reliable image building, and simple image authorization. These features provide full lifecycle management for your images.

  • The Enterprise edition is an enterprise-level management platform for cloud-native application artifacts. It provides lifecycle management for container images, Helm Charts, and other Open Container Initiative (OCI)-compliant artifacts. It supports the efficient distribution of application artifacts across multiple regions and scenarios. It also integrates seamlessly with Container Service for Kubernetes (ACK) to help businesses reduce delivery complexity.

You can select an edition based on your business needs, such as the required number of namespaces and repositories. The ACR Enterprise edition is the recommended choice.

Resource definition and organization

Namespaces

ACR uses namespaces to manage collections of repositories, including their permissions and properties. When you create a namespace, follow these guidelines:

  • Group all repositories for a company or organization under a single namespace.

  • Use a company, team, or organization name for the namespace, such as aliyun, alibaba, or misaka-team.

  • Because the number of namespaces is subject to a quota limit, plan your namespaces based on the number of teams, organizations, or systems. If you need many namespaces, you can purchase multiple Enterprise instances.

Repositories

Follow the naming convention below for your images. Use one image repository per application.

  • Image names must start with the prefix reg.docker.alibaba-inc.com/namespace/.

  • The recommended image name format is: reg.docker.alibaba-inc.com/${yournamespace}/alios7u2-{appName}:[{envName}-]{YYYY-mm-dd}-{seq}[.{git commit id}]. For official production images, leave {envName} empty.

When you modify an image, assign it a new tag before you push it to the Image Center. Do not upload different images with the same tag.

Repository permission configuration

By default, an Alibaba Cloud account has full permissions on its resources. The account can grant RAM users various permissions to access image repository resources. The following permissions are recommended:

  1. Only the cloud administrator has operation permissions for namespaces.

  2. Grant namespace administrators full permissions at the repository level. Grant general namespace members read-only, push, and pull permissions for images.

  3. Grant read-only permission (AliyunContainerRegistryReadOnlyAccess) to company developers and O&M engineers who are not members of the specific application or repository team.

  4. Filter resources by namespace, repository name, or prefix to grant specific permissions to different RAM users.

For more information about configuring permissions, see Configure RAM access control for repositories.