Updated on 2024-06-21 GMT+08:00

Step 3 Registering a New Image

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

  1. Push the image to SWR.

    Log in to SWR first. For details, see Log In to SWR. Run the following command to push the image:

    docker push swr.ap-southeast-1.myhuaweicloud.com/notebook-xxx/pytorch_1_8:v1

    The image is then available on SWR.

    Figure 1 Pushing the image to SWR
  2. Register an image.

    Registering an Image on the ModelArts Console

    Log in to the ModelArts console. In the navigation pane on the left, select Image Management to access the image management page.

    1. Click Register. Set SWR Source to the image pushed to SWR in Step 1. Paste the complete SWR address or click to select a private image from SWR for registration.
    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.

    When you register a new image, ensure that the architecture and type are the same as those of the image source. Otherwise, the creation fails.