1.集群外安装GitLab
sudo docker run --detach \
--hostname 10.222.56.51 \
--publish 443:443 --publish 80:80 --publish 2002:2002 \
--name gitlab \
--restart always \
--volume /data/gitlab/config:/etc/gitlab:Z \
--volume /data/gitlab/logs:/var/log/gitlab:Z \
--volume /data/gitlab/data:/var/opt/gitlab:Z \
gitlab/gitlab-ce:12.10.3-ce.0
sudo docker run --detach