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
标签:GITLAB,--,gitlab,publish,volume,极狐,HOME,搭建 From: https://www.cnblogs.com/zhengyan/p/18418035