从零开始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/

查看密码

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.

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

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

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

复制代码
systemctl restart docker
相关推荐
天河归来22 分钟前
在本地windows电脑使用Docker搭建xinference环境
docker·语言模型·容器
算力魔方AIPC1 小时前
使用 Docker 一键部署 PaddleOCR-VL: 新手保姆级教程
运维·docker·容器
视界先声2 小时前
2025年GEO自动化闭环构建实践:监测工具选型与多平台反馈机制工程分享
大数据·人工智能·自动化
科士威传动2 小时前
丝杆支撑座同轴度如何安装?
人工智能·科技·机器学习·自动化
Ghost Face...2 小时前
Docker实战:从安装到多容器编排指南
运维·docker·容器
个微管理3 小时前
告别多手机切换烦恼,无需下载安装软件的CRM管理系统
微信·智能手机·自动化·微信开放平台
我送炭你添花3 小时前
Pelco KBD300A 模拟器:06+2.Pelco KBD300A 模拟器项目重构指南
python·重构·自动化·运维开发
TSAI4 小时前
Docker Swarm 集群部署 Eureka 服务注册中心:高可用微服务架构的基石
spring cloud·docker
不惑_4 小时前
Windows 安装 Docker 和 Docker Compose 完整教程
windows·docker·容器
企微自动化4 小时前
自动化报表生成:将 RPA 采集的群聊数据自动整理为可视化周报
运维·自动化·rpa