美文网首页
docker gitlab私服

docker gitlab私服

作者: peteLee | 来源:发表于2019-10-21 18:45 被阅读0次

1、镜像下载
docker pull gitlab/gitlab-ce
2、启动
docker run --name gitlab -d
-v /gitlab/config:/etc/gitlab
-v /gitlab/repo:/var/opt/gitlab
-v /gitlab/log:/var/log/gitlab
-p 2222:22 -p 10080:80 -p 433:433
gitlab/gitlab-ce
3、SSH
vim /etc/ssh/sshd_config
HOST gitlab.xxx.com
HOSTNAME gitlab.xxx.com
port 2222
4、SSH重启
service sshd reload
5、访问
http://host:10080/

相关文章

网友评论

      本文标题:docker gitlab私服

      本文链接:https://www.haomeiwen.com/subject/ppekuctx.html