How to install gitlab with podman in ubuntu 24.04

打印 上一主题 下一主题

主题 982|帖子 982|积分 2946

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

x

  • create volume
  1. podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-conf
  2. podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-data
  3. podman volume create --label type=gitlab-17.2 --label env=dev gitlab-17.2-logs
复制代码


  • run
  1. podman run --detach \
  2. --hostname 192.168.110.43 \
  3. --publish 18000:80 --publish 10022:22 \
  4. --name gitlab-17 \
  5. --restart always \
  6. --volume gitlab-17.2-conf:/etc/gitlab \
  7. --volume gitlab-17.2-data:/var/log/gitlab \
  8. --volume gitlab-17.2-logs:/var/opt/gitlab \
  9. gitlab/gitlab-ce:17.2.4-ce.0
复制代码
  1. ylzx@scyl043:~$ podman exec -it gitlab-17 /bin/bash
  2. root@git:/# cat /etc/gitlab/initial_root_password
  3. # WARNING: This value is valid only in the following conditions
  4. #          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).
  5. #          2. Password hasn't been changed manually, either via UI or via command line.
  6. #
  7. #          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.
  8. Password: lbdD4GYiv0oO+5MfhPo3RnX+2Trn6sOLzOycuMf01pI=
  9. # NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
  10. root@git:/# exit
  11. exit
  12. ylzx@scyl043:~$
复制代码
  参数文献
  

  • docker安装gitlab-ce社区版和gitlab-ee企业版
  • How to Deploy GitLab Server Using Docker and Ubuntu

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

耶耶耶耶耶

金牌会员
这个人很懒什么都没写!
快速回复 返回顶部 返回列表