About local mirror to release Ali cloud repository

Before carrying out this operation, we need to register a cloud account Ali, and then locate the container mirroring service;
Here Insert Picture Description
2, and then in turn created a mirror image of our warehouse
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Image management state into a container, which has the image push and pull commands, we change to the operating secureCRT:

(1) First, we need to use to log on to Ali cloud Docker Registry:

sudo docker login --username=金渐层银渐层 registry.cn-hangzhou.aliyuncs.com

(Where gold gradient silver gradient for our Ali cloud user name for the logged in user account named Ali cloud full name, password, password set at the opening of the service.

You can modify the credential password credentials to access the page. )

2, and then view the local mirror, and the mirror to mark Ali cloud mirror;

docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/zjm1/jdk:[镜像版本号]

ImageId our long strings of distortion ID is our mirror;

3 Finally, use the command to push it to Ali cloud warehouse.

docker push registry.cn-hangzhou.aliyuncs.com/zjm1/jdk:[镜像版本号]

Then Ali cloud images we can see the warehouse push mirror;Here Insert Picture Description
Similarly, we can also use the command to pull the mirror repository Ali cloud: docker pull registry.cn-hangzhou.aliyuncs.com/zjm1/jdk:[镜像版本号]and can use the image to create a container;
Here Insert Picture Description

Published 31 original articles · won praise 12 · views 3732

Guess you like

Origin blog.csdn.net/z19950712/article/details/104236933