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

参数文献

相关推荐
l1t3 小时前
用docker安装测试crate数据库
数据库·docker·容器·cratedb
枕书5 小时前
实战记录:如何使用 Docker 一键部署长亭 PandaWiki 智能知识库
运维·docker·容器
Irene19915 小时前
什么是 DevOps
gitlab·devops
IT19958 小时前
Docker笔记-对docker-compose.yml基本认识
笔记·docker·容器
HelloTonyGo9 小时前
个人游戏笔记本免费“养龙虾”(Win10+WSL2+OpenClaw 部署与配置指南)
windows·ubuntu·wsl2·openclaw
supersolon10 小时前
WSL2(Linux)升级docker
linux·运维·docker·wsl·升级
一殊酒11 小时前
【Docker】常用命令大全及解析
docker·容器·eureka
小飞菜涅11 小时前
fast-lio2复现
嵌入式硬件·学习·ubuntu
Uncertainty!!12 小时前
将docker镜像上传到github镜像存储仓库(GitHub 容器仓库(GHCR)使用流程)
docker·容器·github
我是谁??12 小时前
Rocky9+ Docker + 容器内Linux桌面环境 + Web远程
运维·docker·容器