A local mirror to release Ali cloud processes
as the picture shows:
Second, the image generation method
Two Generation Methods:
(1) Dockfile-->docker build
(2) docker commit
# Create a new image from the container docker commit [OPTIONS] container ID [the REPOSITORY [: TAG]] # the OPTIONS Description: # -a: Mirror of submission; # -m: Caption the time of filing;
III. The local mirror Ali pushed to the cloud
(1) Create a warehouse mirrored Ali cloud
(2) the push registry mirror
Enter the management interface:
Login --username = xxxxx registry.cn- Docker hangzhou.aliyuncs.com # image version number just taken, such as 1.4.1 Docker Tag [ImageId,] registry.cn-hangzhou.aliyuncs.com/linhw/ mycentos: [image version number ] # image version number is consistent with the above docker push registry.cn-hangzhou.aliyuncs.com/linhw/mycentos: [image version number]
We are pushed ......
Fourth, Ali cloud can query to
Fifth, downloaded to the local
# Image version number and push the same as 1.4.1 Docker pull registry.cn-hangzhou.aliyuncs.com/linhw/mycentos: [image version number]