docker安装gitlab-ce
作者:互联网
1.参照https://www.cnblogs.com/hfyn/p/14319982.html安装docker
2.下载gitlab的镜像
docker pull gitlab/gitlab-ce
3.创建gitlab挂载的三个文件夹
mkdir /gitlab-ce/{etc,logs,data} -p
3.启动gitlab容器
[root@gitlab ~]# docker run
--detach
--publish 8443:443
--publish 8090:80
--publish 8022:22
--name gitlab
--restart always
--hostname 192.168.8.185
-v /gitlab/etc:/etc/gitlab
-v /gitlab/logs:/var/log/gitlab
-v /gitlab/data:/var/opt/gitlan
-v /etc/localtime:/etc/localtime:ro
--privileged=true gitlab/gitlab-ce
标签:--,gitlab,publish,etc,ce,docker 来源: https://www.cnblogs.com/hfyn/p/16096903.html