Deploy Rancher on CentOS 7.x

#!/bin/bash

yum update -y
service firewalld stop
systemctl disable firewalld
curl -fsSL https://get.docker.com/ | sh ;
systemctl start docker
systemctl status docker
systemctl enable docker
docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

Login at port 8080.