0
点赞
收藏
分享

微信扫一扫

一文看懂rancher1.6.17安装

科牛 2021-09-28 阅读 38

概述

本文介绍rancher1.6.17安装及相关的经验技巧。

安装

1.更新系统

yum install -y epel-release && yum update -y && reboot

2.关闭ipv6、firewalld、selinux安全选项

sed -i 's/crashkernel/ipv6.disable=1 crashkernel/' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
systemctl disable firewalld.service && systemctl stop firewalld.service
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config && setenforce 0

3.安装iptables

yum install -y iptables-services && systemctl enable iptables.service && iptables -F && service iptables save && service iptables restart

3.安装Docker 18.06.3(所有节点执行)

yum -y install docker-ce-18.06.3.ce
systemctl enable docker.service && systemctl start docker

4.安装rancher server

docker run -d --restart=unless-stopped -p 8080:8080 rancher/server
举报

相关推荐

0 条评论