A namespace allows you to effectively manage a collection of repositories, including repository permissions and repository attributes. This topic describes the basic operations on a namespace.

Best practices

A namespace is a collection of repositories. We recommend that you place the repositories of a company or an organization in the same namespace.

  • Sample namespaces named after a company: aliyun and alibaba
  • Sample namespace named after a team or organization: misaka-team

Basic operations on a namespace

  • Create a namespace
    • Log on to the Container Registry console. In the left-side navigation pane, click Instances. On the Instances page, click Default Instance. On the management page of the Container Registry default instance, choose Repositories > Namespaces in the left-side navigation pane. On the Namespaces page, click Create Namespace in the upper-left corner. In the Create Namespace dialog box, enter a namespace name and click Confirm.
    • A maximum of three namespaces can be created within each Alibaba Cloud account.
  • Configure a namespace
    • By default, if you push an image to a repository that does not exist in a namespace, Container Registry automatically creates the repository based on the repository name that you specify.

      To disable this feature, turn off Automatically Create Repository for the namespace.

    • By default, a repository automatically created upon image push is private.

      You can set Default Repository Type to Public for a namespace to change the default repository type.

    Set the repository attribute