Help Center/ ModelArts/ Docker Containers with ModelArts/ FAQs/ How Can I Log In to SWR and Upload Images to It?
Updated on 2024-07-31 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.
    Figure 1 SWR console
  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.
    Figure 2 Creating an organization
  3. Click Generate Login Command in the upper right corner to obtain a login command.
    Figure 3 Login Command
  4. Log in to the ECS as user root and enter the login command.
    Figure 4 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 5 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.
    Figure 6 Uploaded custom image

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