跳至主要內容

rancher安装

xw小于 1 分钟DockerDockerRancher

1、安装docker

yum install docker-io -y

2关闭防火墙
service docker restart
systemctl stop firewalld
systemctl disable firewalld
vim /etc/selinux/config (SELINUX=disabled)

######安装rancher

#稳定版
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher

#server版
docker run -d --restart=always  -v /home/rancher_rancher/db:/var/lib/mysql  --name rancher-server -p 8080:8080 rancher/server