How to install gitlab with podman in ubuntu 24.04

  • create volume
bash 复制代码
podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-conf
podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-data
podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-logs
  • run
bash 复制代码
podman run --detach \
--hostname 192.168.110.43 \
--publish 18000:80 --publish 10022:22 \
--name gitlab-17 \
--restart always \
--volume gitlab-17.2-conf:/etc/gitlab \
--volume gitlab-17.2-data:/var/log/gitlab \
--volume gitlab-17.2-logs:/var/opt/gitlab \
gitlab/gitlab-ce:17.2.4-ce.0
bash 复制代码
ylzx@scyl043:~$ podman exec -it gitlab-17 /bin/bash
root@git:/# 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: lbdD4GYiv0oO+5MfhPo3RnX+2Trn6sOLzOycuMf01pI=

# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
root@git:/# exit
exit
ylzx@scyl043:~$

参数文献

相关推荐
一叶龙洲2 小时前
wslg打开Ubuntu24.04默认打开图形界面
linux·服务器·数据库·ubuntu
敖行客 Allthinker4 小时前
Parallels Ubuntu虚拟机项目如何让手机访问?完整解决方案
linux·运维·ubuntu
BullSmall5 小时前
Anolis OS 8.10 完整安装 Docker CE(生产可用,解决 podman 冲突)
docker·容器·podman
keyipatience5 小时前
线程栈与TLS和线程互斥
java·linux·服务器·开发语言·ubuntu
观山岳五楼6 小时前
Ubuntu 24 怎么使用Ubuntu 20 的镜像源
linux·运维·ubuntu
辰痕~7 小时前
物理机装Linux操作系统(Ubuntu为例)
linux·ubuntu
梦梦代码精8 小时前
开源AI应用平台BuildingAI解析:插件化架构、应用市场与热门案例
人工智能·机器学习·docker·开源
IT瑞先生10 小时前
Docker快速部署Mysql的三种方法——实操篇
mysql·adb·docker
梦远青城11 小时前
Docker 部署python的paddle进行OCR文字识别身份证
python·docker·ocr·paddle·身份证识别
糖果罐子♡12 小时前
TortoiseGit 首次上传本地工程至已初始化的GitLab仓库教程
gitlab