jfrancais

Docker br0 communication

3 posts in this topic Last Reply

Recommended Posts

Hi everyone, I did some searching to find a solution but I havent found what I'm looking for.  I'm currently working at switching some of my docker images to have their own IP vs using the bridge networking.  I can get each docker to do so, and the dockers can communicate with the outside world, but they can't communicate with the unraid host or with the other docker ips.  For example:

 

192.168.1.207 : ip address of my unraid server

192.168.1.51 : ip address of first docker image

192.168.1.52 : ip address of second docker image

192.168.1.201 : my desktop

 

192.168.1.51 - I can see this machine on my desktop, and using the software in the image I can tell it can communicate with the internet but it cant communicate with 192.168.1.52 or 192.168.1.207

 

I'm sure there must be a setting somewhere I'm missing that allows communication between devices on br0.  Can anyone assist?

Share this post


Link to post

OK, I fiigured part of it.  if the docker images are both in br0 they can communicate with each other.  Looks like not communicating between the docker and the unraid host ip is blocked by design.  Any suggested workaround if that scenario is required?  I think I can work around most of it with host path mappings.

Share this post


Link to post

If containers need to access the same disk resources, then path mappings is the answer as you already indicated.

 

If IP communication is required the workaround is to use a second physical interface or VLAN interface, and configure this interface without IP address for unRAID. Under docker settings this interface need to get a different subnet assignment used for the docker containers. Keep in mind that communication between unRAID host and containers now runs via your router,  and depending on your router's performance may impact throughput.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.