Skip to content

拉取 GitLab 镜像

bash
docker pull gitlab/gitlab-ee

配置环境环境

bash
export GITLAB_HOME=/srv/gitlab

Docker部署

ThreadError: can't create Thread: Operation not permitted;设置 privileged=true

bash
docker run --detach \
  --hostname 192.168.101.8 \
  --publish 443 --publish 80 --publish 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 \
  --privileged=true \
  gitlab/gitlab-ee:latest

查看初始密码

root 为初始账号

bash
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password

上次更新于: