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

参数文献

相关推荐
一尘之中6 分钟前
在 Ubuntu 上安装 Docker 的完整指南(使用国内镜像源)
linux·docker·ai写作
oMcLin9 分钟前
如何在Ubuntu 20.04上配置并优化XFS文件系统,提升大规模数据处理与存储的性能?
linux·运维·ubuntu
黎明晓月11 分钟前
Redis容器化(Docker)
java·redis·docker
企鹅郁金香15 分钟前
使用Docker部署Gitlab和Gerrit (一)
docker·容器·gitlab·gerrit部署
Benny的老巢18 分钟前
Docker环境n8n连接Chrome DevTools Protocol的操作方法
docker·chrome devtools·ai agent·n8n·n8n工作流
可爱又迷人的反派角色“yang”28 分钟前
k8s(三)
linux·运维·网络·docker·容器·kubernetes
三块钱079429 分钟前
nas-群晖docker查询注册表失败解决办法
运维·docker·容器
zhaotiannuo_19989 小时前
渗透测试之docker
运维·docker·容器
Web极客码9 小时前
如何在Ubuntu服务器上安装和配置BIND9
服务器·数据库·ubuntu
一叶龙洲11 小时前
解决Ubuntu25.04无法使用快捷键打开
ubuntu