摘要: (五)overlay 如何实现跨主机通信? 上一节我们在 host1 中运行了容器 bbox1,今天将详细讨论 overlay 网络跨主机通信的原理。 在 host2 中运行容器 bbox2: bbox2 IP 为 10.0.0.3,可以直接 ping bbox1: 可见 overlay 网络中的容 阅读全文
posted @ 2020-12-04 18:19 cuiyongchao007 阅读(251) 评论(0) 推荐(0) 编辑
摘要: (四)在 overlay 中运行容器 上一节我们[创建了 overlay 网络]ov_net1,今天将运行一个 busybox 容器并连接到 ov_net1: 查看容器的网络配置: bbox1 有两个网络接口 eth0 和 eth1。eth0 IP 为 10.0.0.2,连接的是 overlay 网 阅读全文
posted @ 2020-12-04 18:15 cuiyongchao007 阅读(150) 评论(0) 推荐(0) 编辑
摘要: (三) 创建 overlay 网络 上一节我们[搭建好实验环境,配置并运行了consul],今天开始创建 overlay 网络。 在 host1 中创建 overlay 网络 ov_net1: -d overlay 指定 driver 为 overaly。 docker network ls 查看当 阅读全文
posted @ 2020-12-04 12:49 cuiyongchao007 阅读(137) 评论(0) 推荐(0) 编辑