All Products
Search
Document Center

Container Registry:Manage namespaces

Last Updated:Jan 02, 2024

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 the Container Registry Personal Edition instance. On the management page of the Container Registry Personal Edition instance, choose Repository > Namespace in the left-side navigation pane. On the Namespace page, click Create Namespace in the upper-left corner. In the Create Namespace dialog box, enter a namespace name and click Confirm.

      Note

      If you do not need a namespace, you can delete the namespace. After the namespace is deleted, it cannot be recovered. Proceed with caution.

    • 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 that is automatically created upon image push is private.

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

    设置仓库属性