当前位置: 首页 > news >正文

从零开始Ubuntu24.04上Docker构建自动化部署(四)Docker安装gitlab

你会发现所有gitlab都无法拉取到的情况下,经查找极狐下的gitlab还可以下载,具体如下:

建议保存地址:

https://packages.gitlab.cn/#browse/search=keyword%3Dgitlab

最新版本:

sudo docker pull registry.gitlab.cn/omnibus/gitlab-jh:17.3.3

停止docker 上mygitlab
sudo docker stop mygitlab
删除docker上mygitlab容器
sudo docker rm mygitlab

修改配置需要重启
gitlab-ctl reconfigure
gitlab-ctl restart

运行gitlab
sudo docker run --detach --publish 20443:443 --publish 20080:80 --publish 20022:22 --name=mygitlab --restart=always --volume /home/gitlab/config:/etc/gitlab --volume /home/gitlab/logs:/var/log/gitlab --volume /home/gitlab/data:/var/opt/gitlab --privileged=true registry.gitlab.cn/omnibus/gitlab-jh:17.3.3

浏览器访问:

http://192.168.100.128:20080/

需要输入

账户为 root

查看密码

cat /etc/gitlab/initial_root_password 

初始化密码,修改密码
root@c5d112cc211f:/# cat /etc/gitlab/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 via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first 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 following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.

Password: +NFD/uQ/IP1uB8idyV2YKq5q9AVLfAJd7jBykWU/zgI=

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

登录系统后,修改密码即可

如果出现登录后如下错误,说明启动完一直没修改

则需要重启gitlab,或重启ubuntu系统,重新生成后即可。

当‌Docker在拉取镜像时卡在“‌pulling fs layer”阶段,可以通过重启Docker服务来解决。 具体步骤如下:

首先,尝试重启Docker服务。可以通过运行以下命令来重启Docker服务:

systemctl restart docker
http://www.lryc.cn/news/451717.html

相关文章:

  • No module named ‘_ssl‘
  • Linux —— Socket编程(三)
  • 5G N2 N3 N6 NB口
  • 【数据结构】堆(Heap)详解
  • 《Linux从小白到高手》理论篇(四):Linux用户和组相关的命令
  • OpenGL ES 之EGL(6)
  • kotlin 委托
  • Stream流的中间方法
  • 【车载开发系列】ParaSoft单元测试环境配置(四)
  • IDEA 设置自动定位文件
  • Nature Machine Intelligence 基于强化学习的扑翼无人机机翼应变飞行控制
  • [Web安全 网络安全]-XXE 外部实体注入攻击XML
  • 8--苍穹外卖-SpringBoot项目中套餐管理 详解(二)
  • 测试面试题:pytest断言时,数据是符点类型,如何断言?
  • Python与MongoDB交互
  • 安卓AI虚拟女友项目开发的Android开发环境搭建
  • 基于SpringBoot+Vue+MySQL的智能垃圾分类系统
  • 你的个人文件管理助手:AI驱动的本地文件整理工具
  • 【PyTorch】环境配置
  • 枫叶MTS格式转换器- 强大、操作简单的MTS、M2TS视频转换工具供大家学习研究参考
  • Vscode把全部‘def‘都收起来的快捷键
  • Web和UE5像素流送、通信教程
  • 【YOLO目标检测电梯间电动车与人数据集】共4321张、已标注txt格式、有训练好的yolov5的模型
  • 【网络安全】公钥基础设施
  • 云原生(四十一)| 阿里云ECS服务器介绍
  • 计算机网络:计算机网络体系结构 —— OSI 模型 与 TCP/IP 模型
  • 【openwrt-21.02】T750 openwrt switch划分VLAN之后网口插拔状态异常问题分析及解决方案
  • C++随心记
  • 【微服务即时通讯系统】——brpc远程过程调用、百度开源的RPC框架、brpc的介绍、brpc的安装、brpc使用和功能测试
  • 鸿蒙开发(NEXT/API 12)【状态查询与订阅】手机侧应用开发