标签:ssh协议 -- doc 访问 gitlab docker安装 pull etc data
1. docker pull gitlab/gitlab-ce
2. mkdir -p /home/gitlab/config
mkdir -p /home/gitlab/logs
mkdir -p /home/gitlab/data
3. docker run -dit -p 443:443 -p 80:80 -p 222:22 --name gitlab --restart always -v /home/gitlab/config:/etc/gitlab -v /home/gitlab/logs:/var/log/gitlab -v /home/gitlab/data:/var/opt/gitlab gitlab/gitlab-ce
4. vim /home/gitlab/config/gitlab.rb
添加:
external_url ‘http://192.168.8.128‘ -----http协议的访问地址,不加端口号默认80
ssh协议地址+端口:
gitlab_rails[‘gitlab_ssh_host‘] = ‘192.168.8.128‘
gitlab_rails[‘gitlab_shell_ssh_port‘] = 222
docker restart gitlab
至此gitlab服务就起来了。
标签:ssh协议 -- doc 访问 gitlab docker安装 pull etc data
原文地址:https://www.cnblogs.com/frantz/p/12694166.html