CentOS7上使用docker部署gitlab

# 1、查找GitLab镜像

1
docker search gitlab

# 2、拉取gitlab docker镜像

1
docker pull gitlab/gitlab-ce:latest

 

# 3、运行GitLab并运行容器

1
2
3
4
5
6
7
8
9
10
11
docker run \
-itd  \
-p 9980:80 \
-p 9922:22 \
-v /usr/local/gitlab-test/etc:/etc/gitlab  \
-v /usr/local/gitlab-test/log:/var/log/gitlab \
-v /usr/local/gitlab-test/opt:/var/opt/gitlab \
--restart always \
--privileged=true \
--name gitlab-test \
gitlab/gitlab-ce

https://www.cnblogs.com/diaomina/p/12830449.html

发表评论