Updated on 2024-02-28 GMT+08:00

Step 2 Registering a New Image

After an image is debugged, register it with ModelArts image management so that the image can be used in ModelArts.

Use either of the following methods to register the image with ModelArts:

  • Method 1: Run the ma-cli image register command to register an image. Then, the information of the registered image is returned, including image ID and name, as shown in the following figure. For more information, see Registering SWR Images with ModelArts Image Management.
    ma-cli image register --swr-path=swr.ap-southeast-1.myhuaweicloud.com/notebook-test/my_image:0.0.1 -P XXX
    Figure 1 Registered image

  • Method 2: Register the image on the ModelArts management console.

    Log in to the ModelArts management console. In the navigation pane on the left, select Image Management. The Image Management page is displayed. Click Register. Paste the complete SWR address, or click to select a private image from SWR for registration, as shown in Figure 2.

    Select the architecture and type based on the site requirements. The architecture and type must be the same as those of the image source.
    Figure 2 Selecting an image