docker安装gitlab

安装gitlab

bash 复制代码
sudo docker run --detach \
  --hostname gitlab \
  --publish 543:443 --publish 90:80 --publish 222: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 \
  registry.gitlab.cn/omnibus/gitlab-jh:latest

端口543:暴露给https

端口90:暴露给http

端口222:暴露给ssh

获得root登录密码

bash 复制代码
docker exec -it gitlab bash
cat /etc/gitlab/initial_root_password

initial_root_password内容如下

bash 复制代码
# WARNING: This value is valid only in the following conditions
#          1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the rst reconfigure run).
#          2. Password hasn't been changed manually, either via UI or via command line.
#
#          If the password shown here doesn't work, you must reset the admin password followiee/security/reset_user_password.html#reset-your-root-password.

Password: JiLfbPrwhQZfjWdiggKCHEpsuvYmcM2nRe5yyboRqws=

# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.

登录root并切换成中文

相关推荐
是小崔啊1 小时前
叩丁狼k8s - 组件篇
云原生·容器·kubernetes
天下不喵1 小时前
python项目部署之pytandic与.env的使用教程
python·docker
芥子沫2 小时前
Docker安装Blossom笔记
笔记·docker·容器
zz-zjx3 小时前
Kubernetes 的部署方式 (一)通过 Minikube 部署
云原生·容器·kubernetes
qq7590353663 小时前
docker一键部署网页版Win11系统
运维·docker·容器
Joren的学习记录3 小时前
【Linux运维大神系列】docker详解(三)
linux·运维·docker
用什么都重名4 小时前
Dify 源码升级指南
docker·容器·dify
java_logo4 小时前
Supabase Postgres Docker 容器化部署指南
运维·docker·postgresql·容器·postgres部署教程·postgres部署文档·docker postgres
l1t4 小时前
利用docker在windows 11 wsl中安装oracle 12cR2
运维·windows·docker·oracle·容器
岚天start5 小时前
Containerd 运行时的 K8S 集群离线导入镜像的方案
容器·containerd·容器运行时