#yum Install Docker-io
#systemctl Start Docker
Serial Number IP usage notes
1 192.168.1.237 Rancher Master
2 192.168.1.236 Rancher from
3 192.168.1.238 Rancher from
#docker run-d--restart=unless-stopped-p 8080:8080 rancher/server
Http://192.168.1.237:8080/admin/access/local
Access control: Add user account information Admin/[email protected]
App Store Installation k8s
#192.168.1.236 Join Rancher Cluster
Docker run-e cattle_agent_ip= "192.168.1.236"-e cattle_host_labels= ' Name=docker01 '--rm--privileged-v/var/run/ Docker.sock:/var/run/docker.sock-v/var/lib/rancher:/var/lib/rancher rancher/agent:v1.2.11/http 192.168.1.237:8080/v1/scripts/6a7548b62f95b0feb565:1514678400000:cnvu3mmlyadrxy3xkev5sgncwg
Store Install k8s kubernetes cluster
To uninstall the rancher cluster node:
192.168.1.236
Stop all containers
Docker ps-a |awk ' {print $} ' |while read line; Do Docker stop $line; Done
192.168.1.236
Remove all containers
Docker ps-a |awk ' {print $} ' |while read line; Do Docker rm-f $line; Done
Uninstalling Docker
Docker.x86_64 2:1.13.1-74.git6e3bb8e.el7.centos
Yum Remove docker-*-y
Rancher Master Node 192.168.1.237
Docker Stop Rancher/server
Docker RM Rancher/server
Yum Remove docker-*-y
CENTOS7 Deploying rancher Management k8s clusters