docker gitlab 安装
本文参考:https://www.cnblogs.com/mithrilon/p/13985710.html
-
获取镜像
docker pull twang2218/gitlab-ce-zh
-
生成镜像参数
docker run --name "gitlabTest" --hostname "106.52.167.158" -p 8090:80 -p 8122:22
-v /usr/gitlab/config:/etc/gitlab
-v /usr/gitlab/data:/
var
/opt/gitlab
-v /usr/gitlab/log:/
var
/log/gitlab
--restart unless-stopped -d twang2218/gitlab-ce-zh
docker run --name "gitlabTest" --hostname "106.52.167.158" -p 8090:80 -p 8122:22 -v /usr/gitlab/config:/etc/gitlab -v /usr/gitlab/data:/
var
/opt/gitlab
-v /usr/gitlab/log:/
var
/log/gitlab
--restart unless-stopped -d twang2218/gitlab-ce-zh