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
- Log in to the SWR console and select the target region.
Figure 1 SWR console
- 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
- Click Generate Login Command in the upper right corner to obtain a login command.
Figure 3 Login Command
- 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
- 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
- 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
- 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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.