Docker实战之registry持续集成
csphere的支持条件 每台运行docker的主机到控制器所在主机之间的网络必须能够连通 docker版本必须在1.6.0以上 仅支持64位系统,已测试可在以下操作系统下正常运行: CentOS 7+ Ubuntu 14.04+ Debian 7+ CoreOS Boot2Docker 虚拟机环境 内网:172.16.1.66 外网:10.0.0.66 1.基础的步骤(查看docker镜像) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [root@oldboy~]#dockerimages REPOSITORYTAGIMAGEIDCREATEDVIRTUALSIZE csphere/wordpress4.204109740355a11hoursago722.7MB csphere/mysql5.563b2bd2cab9739hoursago725.1MB csphere/php-fpm5.438d1572aef9439hoursago685MB csphere/centos7.1080063d1c72d40hoursago591.4MB jb/jobs03latestdd40474b2a4c2daysago1.093MB jobs03latestdd40474b2a4c2daysago1.093MB centoscentos6273a1eca2d3a7daysago194.6MB centoslatestd83a55af4e757daysago196.7MB registrylatestad8da6d14f6d8daysago33.31MB centos6.8c51f770ba2ca5weeksago194.5MB centoscentos7.1.15030250eeee799f5weeksago212.1MB busyboxlatestb05baf071fd56weeksago1.093MB registry0.9.1bdc26a9667256monthsago422.9MB [root@oldboy~]# 2.启动registry容器 1 2 3 4 5 [root@oldboy~]#dockerrun-d-p5000:5000--nameregistryregistry:0.9.1 e407b8224975bcfe47a93d63b52b8eae164ec7c0abae44d4c546796c99115b00 [root@oldboy~]#dockerps-a CONTAINERIDIMAGECOMMANDCREATEDSTATUSPORTSNAMES e407b8224975registry:0.9.1 "docker-registry" AboutaminuteagoUp59seconds0.0.0.0:5000->5000/tcpregistry 3.csphere docker镜像的安装 1 2 3 4 curl-SsL-o/tmp/csphere-install.shhttps: //csphere.cn/static/csphere-install-v2.sh sudoenvROLE=controllerCSPHERE_VERSION=1.0.1/bin/sh/tmp/csphere-install.sh 打tag' [root@oldboy~]#dockertagcsphere/csphere:1.0.1172.16.1.66:5000/csphere/csphere:1.0.1 add host OK 本文转自 小小三郎1 51CTO博客,原文链接:http://blog.51cto.com/wsxxsl/1834986,如需转载请自行联系原作者