Share container images publicly

Updated at:

You can create a public image repository in Container Registry (ACR) to share your images with other users. This enables resource sharing and collaborative development.

Prerequisites

A Personal Edition instance is required. For more information, see Create a Container Registry Personal Edition instance.

Step 1: Create a public image repository

  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 Personal Edition instance that you want to manage.

  5. In the left-side navigation pane of the management page of the Personal Edition instance, choose Repository > Repositories.

  6. On the Repositories page, click Create Repository.

  7. In the Repository Info wizard, configure the Namespace, Repository Name, and Summary. Set Repository Type to Public, and then click Next.

  8. In the Code Source wizard, select a Code Source and click Create Repository.

    Parameter

    Description

    Code source

    Select a code source. Supported options include Codeup, GitHub, Bitbucket, private GitLab, and local repositories.

    Note

    If you use Codeup, Cloud Code, GitHub, Bitbucket, or a private GitLab as your code source, you must bind it. For more information, see Bind a source code repository.

    Build settings

    If the code source is Codeup, Cloud Code, GitHub, Bitbucket, or a private GitLab, you must configure the build settings:

    • Automatically Build Images When Code Changes: This option automatically triggers a build rule when code is committed to a branch.

    • Build with Servers Deployed Outside Chinese Mainland: This option runs the build on servers outside the Chinese mainland. After a successful build, the system pushes the image to your specified region.

    • Build Without Cache: Forces a re-pull of base dependency images for each build, which may increase the build time. Disabling Build Without Cache can accelerate image builds.

Step 2: Push and build images

After creating the public image repository, you can push images to it. For more information, see Use a Container Registry Personal Edition instance to push and pull images. Alternatively, you can build images in the public image repository. For more information, see Create a repository and build images.