- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Overview
- Permissions Management
- Basics of Docker
-
Image Management
- Pushing an Image Through a Container Engine Client
- Obtaining a Long-Term Valid Docker Login Command
- Obtaining a Long-Term Valid containerd Pull/Push Command
- Uploading an Image Through the SWR Console
- Pulling an Image
- Setting Image Attributes
- Sharing Private Images
- Adding a Trigger
- Adding an Image Retention Policy
- Image Center
- Organization Management
- User Permissions
- Auditing
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
API
- Organization Management
- Image Repository Management
- Image Tag Management
- Shared Account Management
- API Versions
- Organization Permission Management
- Image Permission Management
- Automatic Image Synchronization Task Management
- Trigger Management
- Image Retention Policy Management
- Temporary Login Command
- Quota Management
- Example Applications
- Appendixes
- Change History
- FAQs
- Videos
- SDK Reference
Sharing Private Images
Scenario
You can share your private images with other accounts and grant the accounts permissions to pull the images.
A user under the account with which you shared the image can then log in to the SWR console to view the image by clicking My Images > Shared Images. On the tab page, the user can click the target image to check its detailed information, including the image tag and image pull command.
Notes and Constraints
- Only private images can be shared. Public images cannot be shared.
- Only users authorized to manage the private images can share images. The users with whom you share your images only have the read-only permission, which only allows them to pull the images.
- You can share images only with accounts in the same region. Cross-region image sharing is not supported.
Procedure
- Log in to the SWR console.
- In the navigation pane, choose My Images and click the target image.
- On the details page, click the Sharing tab.
- Click Share Image. Set parameters based on Table 1, and click OK.
Table 1 Sharing an image Parameter
Description
Share With
Enter an account name with which you want to share the image.
Valid Until
Set a validity period. If you want the image to be permanently accessible to the account, select Permanently valid.
Description
Enter a maximum of 1,000 characters.
Permission
Only the Pull permission is supported currently.
- To view all the images that you have shared, choose My Images in the navigation pane, click the Private Images tab, and select Display only shared images.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.