An image repository is a collection used to store and manage container images. You can store, manage, and deploy container images from the console. This topic describes how to download platform images and upload private images.
Download a platform image
Platform images include commonly used sample images.
Log on to the console. In the navigation pane on the left, click Image Center > Image Repository.
Click the Platform Images tab. The available images are displayed as cards.
Click an image card to open its details page. Click the copy icon next to the tag to copy the registry address. Then, run the
docker pullcommand to download the image.
Upload a private image
Prerequisites
You need a machine with Docker installed.
NoteThe Docker version must be 1.6.0 or later.
If you are a tenant and this is your first time logging on with a service account, you must first create a user within the tenant.
Procedure
Log on to the machine where Docker is installed.
Obtain your AccessKey ID and AccessKey secret. Use them as the username and password to log on to the Image Center.
Format:
docker login <image_center_domain_name>. Example:docker login hub.alipay.net.NoteYou can obtain the AccessKey ID and AccessKey secret from the AccessKey Information page in the Console under Account Information.
Tag the image using the following format:
<image_center_domain_name>/<tenant_name>/<application_name>:<tag>.Example:
hub.alipay.net/tenantname/appname:imagetag.Run the following command to upload the image:
sudo docker push hub.alipay.net/tenantname/appname:imagetagAfter the upload is complete, the image is stored in Image Center > Image Repository on the Private Images tab. Click the image card to open its details page. Click the copy icon next to the tag to copy the registry address. You can then run the
docker pullcommand to download the image.