docker-swarm创建一个多节点集群

  docker Swarm是Docker官方提供的一款集群管理工具,其主要作用是把若干台Docker主机抽象为一个整体,并且通过一个入口统一管理这些Docker主机上的各种Docker资源。源码地址:https://github.com/limingios/docker中的No.5

  还是通过vagrant + virtualbox的方式来创建

  ·源码文件夹

  

https://upload-images.jianshu.io/upload_images/11223715-8c331a69ae0f9bff.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  ·查看创建虚拟机的源码

  

https://upload-images.jianshu.io/upload_images/11223715-60e15b008e1babb5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-f62e7aee4059955a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-f7d7c43c871afc34.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-9927c46d8ecb0dd9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  ·查看每个虚拟机的ip地址

  

https://upload-images.jianshu.io/upload_images/11223715-0c7fae317d10aac2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-e06b348f3e08cb25.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-8f879a405db6f212.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-c06c729509491f21.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-9f4fb4b3e9f9a97e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  ·swarm-manager 建立manager

  

https://upload-images.jianshu.io/upload_images/11223715-928d8a642ad12a3e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  

https://upload-images.jianshu.io/upload_images/11223715-08a5a1f69343f685.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  ·swarm-worker1 和 swam-worker2 连接manager

  

image.png

 

  ·swarm-manager 查看连接状态

  

https://upload-images.jianshu.io/upload_images/11223715-49efee64305f8afc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240

 

  PS:这样基本上通过docker-swarm完成集群管理。

  

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值