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

相关推荐
Bypass--几秒前
《云原生安全攻防》-- K8s日志审计:从攻击溯源到安全实时告警
安全·docker·云原生·容器·kubernetes
Big__Star10 小时前
Windows 上配置 Docker,Docker 的基本原理和用途,以及如何在 Docker 中运行程序
windows·docker·容器
xzl0412 小时前
centos yum源,docker源
linux·docker·centos
喝养乐多长不高12 小时前
深入探讨redis:哨兵模式
数据库·redis·缓存·docker·主从复制·哨兵模式
小黑屋说YYDS15 小时前
Docker常用命令介绍
运维·docker·容器
王 富贵15 小时前
docker命令
运维·docker·容器
就叫飞六吧16 小时前
Docker 挂载策略:何时使用临时容器拷贝默认配置,何时直接挂载?
运维·docker·容器
沐雨风栉16 小时前
Ubuntu+Docker+内网穿透:保姆级教程实现安卓开发环境远程部署
android·ubuntu·docker
Edward-tan18 小时前
Docker配置SRS服务器 ,ffmpeg使用rtmp协议推流+vlc拉流
docker·ffmpeg·srs·rtmp
过河不拆乔1 天前
使用 Docker 搭建 PyWPS 2.0 服务全流程详解
docker·wps