This topic provides answers to frequently asked questions about image building.

After I use the Container Registry Personal Edition instance to build an image on a server that resides outside mainland China, the image pulling from a region outside mainland China to a region in mainland China is slow. Why does this issue occur and how can I resolve it?

Network issues may slow down the image pulling from a region outside mainland China to a region in mainland China after you use the Container Registry Personal Edition instance to build an image on a server that resides outside mainland China. Solutions:
  • After the layers of an image are cached, you can use the Container Registry Personal Edition instance to build the image in a region in mainland China.
  • You can use a Container Registry Enterprise Edition instance to build an image on a server outside mainland China. The image building can be accelerated as expected because it is not affected by the cross-region network.

Can I use an image in a repository that is not on Alibaba Cloud and requires authentication as the base image?

No, you cannot use an image in a repository that is not on Alibaba Cloud and requires authentication as the base image. We recommend that you push the image to an image repository in Container Registry.

Can the code of submodules in a Git code repository be pulled during image building?

It depends. If the system identifies submodules in a Git code repository, the system tries to pull the code of the submodules first. If the code failed to be pulled, the system pulls only the rest of the Git code repository. Container Registry can pull code only from the submodules that meet the following requirements:
  • The submodules can be accessed by using an HTTP or HTTPS URL rather than an (SSH) URL. If a submodule uses an SSH URL, convert the SSH URL into an HTTP or HTTPS URL.
    The following code shows a submodule that uses an SSH URL. The code of the submodule cannot be pulled.
    [submodule "test/java"]
      path = /test/java
      url = git@github.com:zlseu-edu/simple-java-maven-app.git 
    Convert the SSH URL into an HTTP or HTTPS URL. In this example, an HTTPS URL is used.
    [submodule "test/java"]
      path = /test/java
      url = https://github.com:zlseu-edu/simple-java-maven-app.git
  • Submodules allow you to use the key of the Git code repository to pull code by default. If you need additional permissions to pull code from submodules, obtain the permissions in advance.

Does Container Registry Personal Edition provide the public IP addresses and ports of image repositories and the servers for image building?

No, Container Registry Personal Edition does not provide the public IP addresses and ports of image repositories and the servers for image building because the public IP addresses and ports may change as the architecture changes.

Why am I unable to use the account of Container Registry Personal Edition to log on to an image repository of a Container Registry Enterprise Edition instance?

Container Registry Personal Edition and Enterprise Edition are isolated from each other. You can log on to the image repository by using access credentials. For more information, see Configure an access credential.

Why am I unable to push images to the image repositories of a Container Registry Enterprise Edition instance over the classic network?

You cannot push images to the image repositories of a Container Registry Enterprise Edition instance over the classic network. However, you can push images to the image repositories of a Container Registry Personal Edition instance over the classic network. If you have special requirements, .

How do retention policies take effect if multiple retention policies are configured for an image repository?

If multiple retention policies are configured for an image repository, each retention policy is separately implemented and the latest retention policy is first implemented.

Can I push images to and pull images from a Container Registry Personal Edition instance on Alibaba Finance Cloud over the Internet?

No, you cannot push images to and pull images from a Container Registry Personal Edition instance on Alibaba Finance Cloud over the Internet. However, you can push images to and pull images from a Container Registry Enterprise Edition instance on Alibaba Finance Cloud over the Internet.

Can I push images to and pull images from a Container Registry Personal Edition instance on Alibaba Gov Cloud over the Internet?

No, you cannot push images to and pull images from a Container Registry Personal Edition instance on Alibaba Gov Cloud over the Internet. However, you can push images to and pull images from a Container Registry Enterprise Edition instance on Alibaba Gov Cloud over the Internet.

How do I change the virtual private cloud (VPC) of a Container Registry Enterprise Edition instance?

You must remove the VPC that you do not want and add the VPC that you want. For more information about how to add a VPC, see Configure access over VPCs.

How do I change the GitLab account that is bound to a Container Registry instance?

On the Code Source page, unbind GitLab. Log on to GitLab and create a code repository. Then, bind GitLab on the Code Source page. For more information about how to bind GitLab, see Bind a source code hosting platform.