服务器已经安装好docker
启动: service start docker
安装docker-compose:
安装pip:sudo yum search pip / sudo yum install python2-pip.noarch -y
安装EPEL拓展: yum install epel-release -y
升级pip : pip install --upgrade pip -i https://pypi.douban.com升级backports.ssl_match_hostname: pip install --upgrade backports.ssl_match_hostname
安装:pip install docker-copmse
下载镜像:
docker pull registry.alauda.cn/sameersbn/gitlab
docker pull registry.alauda.cn/sameersbn/postgresql
docker pull registry.alauda.cn/sameersbn/redis
docker pull registry.alauda.cn/sameersbn/gitlab-ci-multi-runner
wget https://raw.githubusercontent.com/sameersbn/docker-gitlab/master/docker-compose.yml
运行sudo docker images 修改docker-compose.yml的images为hash
docker-compose up