Gitlab安装
1.安装docker并启动
]# yum provides wget
]# yum -y install wget-1.14-15.el7_4.1.x86_64
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
]# yum makecache
]# yum -y install docker
]# systemctl start docker
]# systemctl enable docker
2.将镜像导入
[root@git ~]# docker load < gitlab_zh.tar
3.将docker宿主机ssh端口修改
[root@git ~]# vim /etc/ssh/sshd_config
Port 2022
[root@git ~]# systemctl restart sshd
4.重新登录,需要制定端口号
[root@room9pc01 ~]# ssh -p 2022 root@git
5.启动容器
[root@git ~]# docker run -d -h g