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:~$

参数文献

相关推荐
IOT.FIVE.NO.12 分钟前
Linux实操笔记2 Ubuntu安装Nginx的不同方法
linux·笔记·ubuntu
geekrabbit37 分钟前
Ubuntu 22.04上安装Python 3.10.x
linux·python·ubuntu
白手小弟1 小时前
docker部署Stirling-PDF
docker·容器·pdf
驯龙高手_追风2 小时前
Ubuntu下安装最新版本Apache2文件服务器
linux·服务器·ubuntu
夜猫逐梦4 小时前
【docker】阿里云使用docker,2024各种采坑
阿里云·docker·容器
c1tenj24 小时前
docker发布redis容器
redis·docker·容器
Wang201220134 小时前
ubuntu下手工编译安装 6.* 最新内核
linux·运维·ubuntu
路口游子4 小时前
ubuntu24.04 lts 更新后无法登录, 更新前待机无法恢复.
ubuntu
一个随意名字5 小时前
腾讯云软件工程师面试问题收集记录-数据库
linux·数据库·ubuntu·面试·腾讯云
程序猿看视界5 小时前
Halo 开发者指南——项目运行、构建
git·docker·node.js·pnpm·idea·openjdk·halo