zhouandtao 发表于 2018-9-19 08:32:00

docker搭建gitlab

#查找镜像  
# docker search gitlab
  

  

  
INDEX       NAME                                             DESCRIPTION                                     STARS   OFFICIAL   AUTOMATED
  
docker.io   docker.io/gitlab/gitlab-ce                         GitLab Community Edition docker image base...   946                  
  
docker.io   docker.io/sameersbn/gitlab                         Dockerized gitlab web server                  803                  
  
docker.io   docker.io/gitlab/gitlab-runner                                                                     143                  
  
docker.io   docker.io/gitlab/gitlab-ee                         GitLab Enterprise Edition docker image bas...   47                   # 拉取镜像
  
docker pull docker.io/gitlab/gitlab-ce
  

  
# 启动镜像(使用桥接网络启动docker)
  
docker run --detach \
  
    --publish 9443:443 --publish 9080:80 --publish 9022:22 \
  
    --name gitlab \
  
    --restart always \
  
--volume /app/gitlab/config:/etc/gitlab \
  
--volume /app/gitlab/logs:/var/log/gitlab \
  
--volume /app/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce


页: [1]
查看完整版本: docker搭建gitlab