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并切换成中文

相关推荐
u***284716 小时前
如何在docker中的mysql容器内执行命令与执行SQL文件
sql·mysql·docker
q***656916 小时前
使用 Docker 部署 RabbitMQ 的详细指南
docker·容器·rabbitmq
TO_ZRG16 小时前
Unity PackageManager
unity·gitlab
好奇的菜鸟16 小时前
Ubuntu 24.04 安装 MySQL 8 完整指南:包含远程连接和密码设置
ubuntu·阿里云·docker
好奇的菜鸟16 小时前
如何在 Ubuntu 系统上完全移除 Docker 及其所有数据
linux·ubuntu·docker
行走的陀螺仪19 小时前
GitLab CI/CD 完整教学指南
前端·ci/cd·gitlab·团队开发·自动化测试部署
喜欢你,还有大家20 小时前
k8s集群监控的部署
云原生·容器·kubernetes
喜欢你,还有大家21 小时前
实战演练——wordpress-k8s集群版
云原生·容器·kubernetes
德育处主任1 天前
『NAS』轻松获取群晖自带的壁纸
服务器·docker
e***87701 天前
Node.js 与 Docker 深度整合:轻松部署与管理 Node.js 应用
docker·容器·node.js