Docker br0 communication


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?

Link to comment

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.

Link to comment

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.

 

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.