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

参数文献

相关推荐
斯文by累43 分钟前
解锁DeepSeek潜能:Docker+Ollama打造本地大模型部署新范式
运维·docker·容器
意倾城9 小时前
Docker数据卷
docker·容器
whgjjim9 小时前
docker迅雷自定义端口号、登录用户名密码
运维·docker·容器
南方以南_12 小时前
Ubuntu操作合集
linux·运维·ubuntu
追赶sun16 小时前
Ubuntu 添加系统调用
linux·ubuntu·操作系统·系统调用
Why not try?!16 小时前
Centos7 中 Docker运行配置Apache
运维·docker·容器
hnlucky17 小时前
如何彻底清空docker里面不使用的容器?
运维·docker·容器
Snasph18 小时前
Ubnutu ADB 无法识别设备的解决方法
ubuntu·adb
帷幄庸者18 小时前
CentOS 上配置 Docker 使用 NVIDIA GPU
linux·docker·centos
Mapleay18 小时前
ubuntu 更新华为源
运维·服务器·ubuntu