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

参数文献

相关推荐
whlqjn_12116 小时前
ubuntu启动失败报error: the initrd is too big错误
ubuntu
叽里咕噜怪7 小时前
docker-compose 编排ruoy实践
运维·docker·容器
H²D8 小时前
离线安装Dpanel面板
docker
知识分享小能手8 小时前
Ubuntu入门学习教程,从入门到精通,Ubuntu 22.04文件压缩与解压缩知识点详解(12)
linux·学习·ubuntu
Secede.9 小时前
Windows + WSL2 + Docker + CudaToolkit:深度学习环境配置
windows·深度学习·docker
一世琉璃白_Y9 小时前
Ubuntu(VMware)虚拟机网络异常排查与解决方案
linux·网络·ubuntu
深耕AI11 小时前
【Docker命令】以LocalAI部署为例
运维·docker·容器
JANGHIGH11 小时前
vmware安装ubuntu虚拟机后与主机win10共享文件夹
linux·运维·ubuntu
深耕AI11 小时前
如何深入理解 `docker ps` 输出:从容器健康状态变化说起
docker·容器·rpc
hanyi_qwe11 小时前
Docker 镜像的创建 【docker (四)】
运维·docker·容器