极狐gitlab 搭建

1、安装参考:https://gitlab.cn/install/

2、启动容器:

注意:$GITLAB_HOME 变量需要提前设置

复制代码
sudo docker run --detach \
--hostname localhost \
--publish 13443:443 --publish 13800:80 --publish 13822:22 \
--name gitlab \
--restart always \
--volume $GITLAB_HOME/config:/etc/gitlab \
--volume $GITLAB_HOME/logs:/var/log/gitlab \
--volume $GITLAB_HOME/data:/var/opt/gitlab \
--shm-size 256m \
registry.gitlab.cn/omnibus/gitlab-jh:latest
复制代码

3、过一会在访问:http://localhost:13800/ 
  进入容器内查看初始密码:
  a. 进入容器:docker exec -it gitlab /bin/bash
  b.查看密码:cat /etc/gitlab/initial_root_password

 

 

参考文档:https://blog.csdn.net/qq_33472553/article/details/138271305

posted @   zhengyan_web  阅读(62)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
历史上的今天:
2020-09-18 es6 Proxy对象详解
2018-09-18 es6 新的数组操作
点击右上角即可分享
微信分享提示