Rancher的安装
控制端
1docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
服务端
1docker run -e CATTLE_AGENT_IP="138.30.65.91"
2--rm --privileged
3-v /var/run/docker.sock:/var/run/docker.sock
4-v /var/lib/rancher:/var/lib/rancher
5rancher/agent:v1.2.11 http://xxx.xxx:8080/v1/scripts/3A9E22EDA0BA91475:157700:3MnFfjZMBXnPrhZ8
注意Github授权访问,就可以实现权限控制了!