歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> 學習Linux >> centos7.2安裝Rancher

centos7.2安裝Rancher

日期:2017/3/6 9:46:40   编辑:學習Linux

centos7.2安裝Rancher


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+

##2.安裝docker1.11.1

curl -sSL https://get.docker.com/ | sh

這邊沒有用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://github.com/rancher/rancher.git#docker run -d --restart=always -p 8080:8080 rancher/server(這邊安裝默認的server版本。要安裝穩定版本可以加上tag,參考官方文檔可知)

5.進入界面添加host

參考網址:1.http://docs.rancher.com/rancher/latest/en/quick-start-guide/2.https://github.com/rancher/rancher#launching-management-server

http://xxxxxx/Linuxjc/1134279.html TechArticle

Copyright © Linux教程網 All Rights Reserved