docker 搭建自己的gitlab
https://www.cnblogs.com/smallstudent/p/5396660.html
--privileged=true 容器拥有root权限
--hostname 111.229.235.9 服务器ip地址
docker pull gitlab/gitlab-ce:8.7.0-rc3.ce.0
mkdir -p /opt/gitlab/config /opt/gitlab/logs /opt/gitlab/data
docker run -d --hostname 111.229.235.9 --name gitlab2 --restart always -p 3380:80 -p 3322:22 -p 3443:443 -v /opt/gitlab/config:/etc/gitlab -v /opt/gitlab/logs:/var/log/gitlab -v /opt/gitlab/data:/var/opt/gitlab --privileged=true gitlab/gitlab-ce:8.7.0-rc3.ce.0
开放linux防火墙3380端口
http://111.229.235.9:3380 设置8位数密码12345678
登录:用户名root 密码12345678