docker安装gitlab

这篇具有很好参考价值的文章主要介绍了docker安装gitlab。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

安装gitlab

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登录密码

docker exec -it gitlab bash
cat /etc/gitlab/initial_root_password

initial_root_password内容如下

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

docker安装gitlab,docker,gitlab,容器文章来源地址https://www.toymoban.com/news/detail-689092.html

到了这里,关于docker安装gitlab的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Docker部署的gitlab升级指南(15.11.X容器里升级PostgreSQL到13.8)

    一、确定当前版本 二、备份数据,防止升级发生意外 三、确定升级路线 docker环境部署gitlab的升级很简单,直接基于高版本的镜像运行容器即可; 需要注意的是gitlab的升级不能跨大版本升级,详见升级路径: https://docs.gitlab.com/ee/update/index.html#upgrade-paths 可在此链接查看gitla

    2024年01月16日
    浏览(40)
  • GitLab(2)——Docker方式安装Gitlab

    目录 一、前言 二、安装Gitlab 1. 搜索gitlab-ce镜像 2. 下载镜像 3. 查看镜像 4. 提前创建挂载数据卷 5. 运行镜像 三、配置Gitlab文件 1. 配置容器中的/etc/gitlab/gitlab.rb文件 2. 重启容器 3. 登录Gitalb ① 查看初始root用户的密码 ② 访问gitlab地址,输入用户名与密码 4. 设置语言为简体中

    2024年02月06日
    浏览(28)
  • Gitlab基础篇: Gitlab docker 安装部署、Gitlab 设置账号密码

    安装docker gitlab前确保docker环境,如果没有搭建docker请查阅“Linux docker 安装文档” docker 下载 gitlab容器 参数解析 命令 参数 解析 -name gitlab 容器的名称 -p 18081:80 80端口为gitlab可视化操作服务的默认访问端口,防止占用将80更改为18081 -p 10022:22 22为ssh 端口,因为冲突所以改成10

    2024年01月21日
    浏览(29)
  • docker安装gitlab 闭坑

    docker安装gitlab: web访问gitlab: http://192.168.11.45:880 注册,使用注册的用户登录报错: Your account is pending approval from your GitLab administrator and hence blocked. Please contact your GitLab administrator if you think this is an error . 根据 (3条消息) Your account is pending approval from your GitLab administrator and henc

    2024年02月15日
    浏览(37)
  • docker安装gitlab

    端口543:暴露给https 端口90:暴露给http 端口222:暴露给ssh initial_root_password内容如下

    2024年02月10日
    浏览(28)
  • docker方式安装gitlab

    用docker来安装比较方便简单,包括版本升级也会变得更简单。 1、拉取gitlab镜像 gitlab-ce表示的是社区免费版本 2、创建映射文件 etc映射保存配置文件,log 存储日志,data存储数据文件 3、运行gitlab容器 hostname : 安装服务的ip publish 443:443 https的端口,左边是宿主机对外端口,右边

    2024年02月03日
    浏览(23)
  • 在docker上安装gitlab

    2024年02月16日
    浏览(28)
  • docker compose安装gitlab

    docker search gitlab docker pull gitlab/gitlab-ce docker compose -f gitlab_docker.yml up -d docker compose -f gitlab_docker.yml logs -t --tail=10 http://178.119.30.16:8929/ docker exec -it gitlab cat /etc/gitlab/initial_root_password

    2024年01月21日
    浏览(26)
  • docker 安装gitlab 遇到的问题

    问题一:代码迁移问题 描述:docker 安装完gitlab后,将代码从A服务器进行迁移B服务器,结果输入账号密码发现代码并没有迁移成功,出现问题如下:【提示账号密码有误】 remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a perso

    2024年01月25日
    浏览(34)
  • Docker安装Gitlab【亲测可用】

    ssh、postfix安装 #安装相关依赖 sudo yum install -y curl policycoreutils openssh-server openssh-clients #启动ssh服务、设置为开机自启动 sudo systemctl enable sshd sudo systemctl start sshd #安装postfix以发送邮件通知 sudo yum install -y postfix #启动postfix服务、设置为开机自启动 sudo systemctl enable postfix sudo syst

    2024年02月02日
    浏览(27)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包