docker 下载gitlab镜像 centos 8
docker pull beginor/gitlab-ce:11.0.1-ce.0
在目录添加文件
mkdir -p /home/gitlab/etc
mkdir -p /home/gitlab/log
mkdir -p /home/gitlab/data
启动docker镜像
docker run \
--detach \
--publish 20002:443 \
--publish 20001:80 \
--name gitlab \
--restart unless-stopped \
-v /home/gitlab/etc:/etc/gitlab \
-v /home/gitlab/log:/var/log/gitlab \
-v /home/gitlab/data:/var/opt/gitlab \
beginor/gitlab-ce:11.0.1-ce.0
开放防火墙端口
firewall-cmd --zone=public --add-port=20002/tcp --permanent
firewall-cmd --zone=public --add-port=20001/tcp --permanent
firewall-cmd --reload