官网中还有基于k8s、helm、linux的安装方式,很好,需要就去点击吧
curl -sfL https://get.rainbond.com/install_docker | bash
echo "export GITLAB_HOME=/srv/gitlab " >> .bash_profile
source .bash_profile
mkdir -p /srv/gitlab/
docker pull gitlab/gitlab-ce:latest
docker run --privileged --detach --hostname gitlab.example.com --publish 444:443 --publish 8080:80 --publish 2222:22 --name gitlab --restart always --volume $GITLAB_HOME/config:/etc/gitlab --volume $GITLAB_HOME/logs:/var/log/gitlab --volume $GITLAB_HOME/data:/var/opt/gitlab --shm-size 256m gitlab/gitlab-ce:latest
docker exec -it gitlab /bin/bash
cat /etc/gitlab/initial_root_password
就能看到password后一串密码