Help Center/ ModelArts/ Image Management/ FAQs/ How Can I Log In to SWR and Upload Images to It?
Updated on 2024-08-08 GMT+08:00

How Can I Log In to SWR and Upload Images to It?

This section describes how to log in to SWR and upload images to it.

Step 1 Log In to SWR

  1. Log in to the SWR console and select the target region.
  2. Click Create Organization in the upper right corner and enter an organization name to create an organization. deep-learning is used as an example. Replace it in subsequent commands with the actual organization name.
  3. Click Generate Login Command in the upper right corner to obtain a login command.
  4. Log in to the ECS as user root and enter the login command.
    Figure 1 Login command executed on the ECS

Step 2 Upload Images to SWR

This section describes how to upload an image to SWR.
  1. Log in to SWR and tag the image to be uploaded. Replace the organization name deep-learning in the following command with the actual organization name obtained in step 1.
    sudo docker tag tf-1.13.2:latest swr.example.com/deep-learning/tf-1.13.2:latest
  2. Run the following command to upload the image:
    sudo docker push swr.example.com/deep-learning/tf-1.13.2:latest
    Figure 2 Uploading an image
  3. After the image is uploaded, choose My Images in navigation pane on the left of the SWR console to view the uploaded custom images.

    swr.example.com/deep-learning/tf-1.13.2:latest is the SWR_URL of the custom image.