You can create public image repositories in Container Registry and push images to the repositories to share the images with others. This helps you implement resource sharing and collaborative development of images.
Prerequisites
A Container Registry Personal Edition instance is created. For more information, see Create a Container Registry Personal Edition instance.
Step 1: Create a public image repository
Log on to the Container Registry console.
In the top navigation bar, select a region.
In the left-side navigation pane, click Instances.
On the Instances page, click the Personal Edition instance that you want to manage.
In the left-side navigation pane of the management page of the Personal Edition instance, choose .
On the Repositories page, click Create Repository.
In the Repository Info step of the Create Repository wizard, configure Namespace, Repository Name, and Summary. Then, set Repository Type to Public and click Next.
In the Code Source step, configure Code Source and click Create Repository.
Parameter
Description
Parameter
Description
Code Source
Select a code source. Valid values: Codeup, GitHub, Bitbucket, Private GitLab, or Local Repository.
If you select Codeup, GitHub, Bitbucket, or Private GitLab as the code source, you must bind your Container Registry instance to a code source repository. For more information, see Step 1: Bind a source code repository.
Build Settings
If you select Codeup, GitHub, Bitbucket, or Private GitLab as the code source, you must configure Build Settings.
Automatically Build Images When Code Changes: The building rule is automatically triggered when code is committed from a branch.
Build With Servers Deployed Outside Chinese Mainland: Images are built in a data center outside the Chinese mainland and then pushed to an image repository in the specified region.
Build Without Cache: Container Registry pulls the base image from the image repository every time Container Registry builds an image. This may extend the duration of image building. You can disable Build Without Cache to accelerate image building.
Step 2: Configure an image
You can push images to the public image repository that you created. For more information, see Use a Container Registry Personal Edition instance to push and pull images. You can also build images in the public image repository. For more information, see Create a repository and build images.