Docker- local mirror to release Ali cloud

1. Mr. into a mirror

There are two types of hairs: (1) write DockerFile (2) create a new image docker commit [option] name from the container vessel image ID: version number

option Description: -a -m of the modified message

 

 

2. Ali cloud pushed to a local mirror

https://cr.console.aliyun.com/

First create a mirror warehouse

1.  2.3.

 

 

 

Get the details of a private warehouse

 

// push mirrored Registry
Login --username the sudo Docker = $ yuanfang0903 registry.cn- beijing.aliyuncs.com 
$ the sudo Docker Tag [ImageId,] registry.cn -beijing.aliyuncs.com/yuanfang/ teamo: [image version number] 
$ the sudo Docker Push Registry. CN -beijing.aliyuncs.com/yuanfang/teamo: [image version number] 

the following is another name mysql_master_slave ok here after a library should correspond to mean almost teamo

 

 

 

To the warehouse to view mirror appears you pass up a mirror is ok

 

 

3. Ali cloud image downloaded to the local

// There may be multiple versions, so be sure to add version number 

Docker pull registry.cn-beijing.aliyuncs.com/yuanfang/mysql_master_slave:5.7

# can then be run

 

 

Guess you like

Origin www.cnblogs.com/yuanfang0903/p/11239367.html