docker 私有仓库上传镜像,其他docker服务器从私有镜像下载

<pre name="code" class="cpp">docker:/data# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5739360d1030 registry "docker-registry" 42 seconds ago Up 42 seconds 0.0.0.0:5000->5000/tcp sad_mccarthy
c6643476b61b centos_6.5_all:scan "bash" About an hour ago Up About a minute jovial_mclean docker:/data# docker tag centos_6.5_all:scan 192.168.32.150:5000/zjzc_centos6.5_template docker:/data# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5739360d1030 registry "docker-registry" 59 seconds ago Up 58 seconds 0.0.0.0:5000->5000/tcp sad_mccarthy
c6643476b61b centos_6.5_all:scan "bash" About an hour ago Up 2 minutes docker:/data# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5739360d1030 registry "docker-registry" About a minute ago Up About a minute 0.0.0.0:5000->5000/tcp sad_mccarthy
c6643476b61b centos_6.5_all:scan "bash" About an hour ago Up 2 minutes jovial_mclean docker:/data# docker tag centos_6.5_all:scan 192.168.32.150:5000/zjzc_cenot6.5_template 上传镜像到私有仓库: docker:/data# docker push 192.168.32.150:5000/zjzc_centos6.5_template 查看镜像: docker:/data# curl http://192.168.32.150:5000/v1/search
{"num_results": 2, "query": "", "results": [{"description": "", "name": "library/zjzc_centos6.5_template"}, {"description": "", "name": "library/zjzc_linux123"}]}docker:/data# 其他docker服务器 下载镜像: 需要修改/etc/init.d/docker 为私有仓库的地址: docker pull 192.168.32.150:5000/zjzc_centos6.5_template 192.168.32.150 为私有仓库地址
上一篇:db2删除数据库


下一篇:powerDesigner 报Unable to connect SQLState=08004 解决方法