Docker: how to connect two bridges
来源:互联网 发布:淘宝组装机为什么便宜 编辑:程序博客网 时间:2024/06/06 02:15
http://stackoverflow.com/questions/36544443/docker-how-to-connect-two-bridges
1 down vote favorite
As you know after Docker 1.9 we can create bridges to connect containers.
I have created two custom bridges: bridge A 172.18.0.1
and bridge B172.19.0.1
.
Now I have a container1 on bridge A, and a container2 on bridge B called "mailServer".
The container1 needs to reach container2 by a DNS, how should I do this? Because they are on different bridges so they cannot talk to each other. Do I need a router and can I achieve this by Docker?
This is a new feature of Docker and I didn't find much information. Thanks.
You can try making use of the veth peer so that you can connect two bridges. Make sure you are rename and names respectively with the one you configured.
ip link add veth0 type veth peer name veth1ifconfig veth0 upifconfig veth1 upbrctl addif <D1-A-Bridge> veth0brctl addif <D2-A-Bridge> veth1
- Docker: how to connect two bridges
- How can I connect two bridges (eg br0 and br1)?
- Docker - How to Connect to a MySQL Running Container Using MySQL Command Line Client
- Docker - Cannot connect to the Docker daemon
- How to connect Ubuntu remotely
- How to connect oracle databse
- how to let viewpad7 connect to ubuntu
- How to Connect to Oracle via JDBC
- How to Connect to MySQL Using C#
- QT7 How to connect Qt to SQLite
- Connect android to two wireless networks simultaneously
- Cannot connect to the Docker daemon 解决
- Cannot connect to the Docker daemon.
- Cannot connect to the Docker daemon.
- Cannot connect to the Docker daemon
- C# how to connect the database
- How to connect DB in Java
- How to connect SQLPlus without tnsnames.ora
- yii2.0 文件上传
- Oracle dmp文件损坏恢复案例
- yii2下使用自带类发送邮件
- sklearn 下的流行学习(Manifold Learning)—— sklearn.manifold
- java对象和xml之间转换--Jaxb
- Docker: how to connect two bridges
- 网易云音乐爬虫--评论爬取以及Top Music统计
- 如何判断一个n次多项式是否对称?
- ADB命令
- 我的备份一
- sublime_text.3.0的安装的以及问题解决
- 8天学通MongoDB——第六天 分片技术
- 触摸屏上图片移动延迟削减方法
- 深圳结构化面试真题