dcoker build private warehouse

A, docker private warehouse building

[SZX the root @ ~] # Docker pulling pull Registry # private warehouse image 
[the root SZX @ ~] # Docker RUN = -id --name Registry -p 5000: 5000 and launch container constructed Registry # 
[@ SZX the root ~] # vim /etc/docker/daemon.json # modify daemon.json 
[root @ SZX ~] # systemctl restart # restart docker docker service 
[root @ SZX ~] # docker start Registry containers # start 
[root @ SZX ~] # docker Tag mysql: 5.6 120.78.72.136:5000/mysql:5.6 # mirrored marked a new label 
[root @ SZX ~] # Docker image uploaded the Push 120.78.72.136:5000/mysql:5.6 #

Second, the image will be uploaded to a private warehouse

 

 Upload successful! ! ! ! ! !

Third, from a private warehouse pull Mirror

Guess you like

Origin www.cnblogs.com/songzhixue/p/12495378.html