使用Rancher OS

rancher主控台(建議RAM給大一點)

docker run -d --restart=unless-stopped --name=rancherMaster --net=rancherNET --ip=10.0.252.1 -p 8080:8080 rancher/server:stable

node1

docker run -d --restart=unless-stopped --name=rancherNode1 --net=rancherNET --ip=10.0.252.2 -p 8081:8080 rancher/server:stable
docker run -d --restart=unless-stopped --name=rancherNode2 --net=rancherNET --ip=10.0.252.3 -p 8082:8080 rancher/server:stable
docker run -d --restart=unless-stopped --name=rancherNode3 --net=rancherNET --ip=10.0.252.4 -p 8083:8080 rancher/server:stable

Last updated