Updated on 2025-04-30 GMT+08:00

Namespace Management

Scenarios

A namespace is used to group container images into a category instead of storing them. A namespace is usually created for a project or department of an enterprise.

After a repository is created, a public namespace library will be automatically created for it.

Creating a Namespace

  1. Log in to the SWR console. In the upper left corner, switch to your region. In the navigation pane, choose Repositories. Click your repository name.
  2. In the navigation pane, choose Namespaces.
  3. Click Create Namespace in the upper right corner.
  4. Enter a namespace name and select a namespace type.

    Figure 1 Creating a namespace
    • Public: Any user can pull artifacts from the namespace after login. If other operations on the artifacts are required, authorize users on the IAM console.
    • Private: Only users authorized on the IAM console can perform operations on artifacts in the namespace.

  5. Click OK.

    After a namespace is created, you can check its details in the list or card view. Click or in the upper right corner to switch the view.

Deleting a Namespace

  • List view: Select a namespace and click Delete in the Operation column. In the displayed dialog box, enter DELETE and click OK.
  • Card view: Select a namespace and click . In the displayed dialog box, enter DELETE and click OK.
Figure 2 Deleting a namespace

To avoid deleting important data by mistake, namespaces containing container images cannot be deleted. You need to delete the images first before deleting the namespaces.