使用ovs构建docker网络,实现跨主机通信与网络隔离
2017-09-29
阅读 5 分钟
6.9k初始化环境 {代码...} 一些工具安装:yum install bridge-utils # 如果brctl不能用 yum install net-tools # 如果route命令不能用 单节点上使用ovs vlan划分网络 启动四个容器: {代码...} 创建ovs网桥并绑定端口 {代码...} 这样con1 和 con2是通的,con3和con4是通的,这个比较简单。pipework干的具体的事是: {代码......