前端之家收集整理的这篇文章主要介绍了
centos7.2安装Rancher,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
centos7.2安装Rancher
1.Ranche的安装条件
·Docker 1.10.3
·Any modern Linux distribution that supports Docker 1.10.3. (Ubuntu,RHEL/CentOS 7 are more heavily tested.) Rancher also works with RancherOS.
·RAM: 1GB+
@H_
502_7@##2.安装docker1.11.1
curl -sSL https://get.docker.com/ | sh
@H_
502_7@这边没有用yum
方法,因为yum安装的版本是1.9.1的版本,不符合安装 Ranche的条件。
3.重启docker并关闭防火墙与selinux
#service docker restart
#systemctl stop firewalld
#systemctl disable firewalld
#vim /etc/selinux/config
SELINUX=disabled
4.安装Ranche服务
#git clone https:
#docker run -d --restart=always -p 8080:8080 rancher/server(这边安装默认的server版本。要安装稳定版本可以加上tag,参考官方文档可知)
5.进入界面添加host
@H_
502_7@
参考网址:1.http://docs.rancher.com/rancher/latest/en/quick-start-guide/ 2. https://github.com/rancher/rancher#launching-management-server