docker pull gitlab/gitlab-ce
docker run --detach \
--publish 10443:443 --publish 1080:80 --publish 1022:22 \
--name gitlab \
--restart always \
--volume /mydata/gitlab/config:/etc/gitlab \
--volume /mydata/gitlab/logs:/var/log/gitlab \
--volume /mydata/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest
# 开启1080端口
firewall-cmd --zone=public --add-port=1080/tcp --permanent
# 重启防火墙才能生效
firewall-cmd --reload
# 查看已经开放的端口
firewall-cmd --list-ports
docker logs gitlab -f
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password
安装完成解决gitlab克隆地址是一串英文代码
find /mydata/gitlab/ -name gitlab.rb
external_url 'http://192.168.213.128'
docker restart gitlab