一、使用docker安装Gitlab
1、安装docker
https://download.docker.com/m...
2、安装后设置加速器器:
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"https://pt3p0cvc.mirror.aliyuncs.com"
]
}
3、拉取gitlab(测试sso指定对应版本)
docker pull gitlab/gitlab-ee:10.8.4-ee.0
4、在docker内启动gitlab项⽬
sudo docker run --detach \
--hostname localhost \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume /Users/yufu/gitlab/config:/etc/gitlab \
--volume /Users/yufu/gitlab/logs:/var/log/gitlab \
--volume /Users/yufu/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ee:10.8.4-ee.0
注:需要将容器目录映射到本机目录,":"前为本机目录。":"后为docker映射目录,系统会自动创建也可以自己创建,并且将目录绑定到docker容器中,实现资源文件共享。
5、安装成功后,域名输入:localhost,可以进行访问。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。