1、启动命令
docker run -itd \
-p 9980:80 \
-p 9922:22 \
-v /home/data/gitlab/etc:/etc/gitlab \
-v /home/data/gitlab/log:/var/log/gitlab \
-v /home/data/gitlab/opt:/var/opt/gitlab \
--restart always \
--privileged=true \
--name gitlab \
gitlab/gitlab-ce:14.10.3-ce.0
2、更新权限
docker exec -it gitlab update-permissions
docker restart gitlab
3、解决gitaly启动问题
docker exec -it gitlab bash
gitlab-ctl status
gitlab-ctl tail | grep error
cd /var/opt/gitlab/gitaly/
chmod 777 ./gitaly.pid
gitlab-ctl restart
gitlab-ctl status查看gitaly启动状态为run说明成功。