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

参数文献

相关推荐
诗句藏于尽头1 小时前
BT面板docker搭建excalidraw遇到的问题
运维·docker·容器
弧襪1 小时前
解决 Docker Swarm 集群节点故障:从问题剖析到修复实战
docker·容器
开发小能手-roy4 小时前
如何设置Ubuntu服务器版防火墙
linux·运维·ubuntu
laimaxgg5 小时前
Docker命令
linux·运维·服务器·ubuntu·docker
HEX9CF6 小时前
【Docker】快速部署 Certbot 并为 Nginx 服务器配置 SSL/TLS 证书
服务器·nginx·docker
萌狼蓝天6 小时前
[CI]Docker构建时传递CI的唯一生成号作为版本号(SpringBoot、Vue)
spring boot·ci/cd·docker
Chance Z7 小时前
Ubuntu搭建Pytorch环境
linux·pytorch·ubuntu
m0_521118237 小时前
ubuntu 22.04配置cuda和cudnn
linux·ubuntu
搬砖天才、10 小时前
日常记录-群晖nas的docker注册表被墙,用Mac电脑的docker拉取镜像并安装到nas中
macos·docker·容器
遇见火星10 小时前
Docker新型容器镜像构建技术,如何正确高效的编写Dockerfile
docker·容器·dockerfile·容器镜像