1,5台ubuntu服务器
![](https://img.haomeiwen.com/i8080294/03a13dcbb9aade4b.png)
2,安装docker
参考我的docker教程一
3,安装rancher/server
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
![](https://img.haomeiwen.com/i8080294/89c165b7d2af6c1b.png)
4,安装rancher/agent
a,获取rancher/server中的安装信息
![](https://img.haomeiwen.com/i8080294/a7c93ce1123e503e.png)
![](https://img.haomeiwen.com/i8080294/5cf65ffd6a23cb91.png)
b,安装rancher/agent
![](https://img.haomeiwen.com/i8080294/8b62d92eadd0bc16.png)
5,查看rancher集群状态
![](https://img.haomeiwen.com/i8080294/9804c94c376ab9b7.png)
主机改名,便于标识
![](https://img.haomeiwen.com/i8080294/5c96137bc8f7fc28.png)
![](https://img.haomeiwen.com/i8080294/db2896865fa34803.png)
参考我的docker教程一
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
主机改名,便于标识
本文标题:rancher教程一(安装)
本文链接:https://www.haomeiwen.com/subject/sifkextx.html
网友评论