Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Dockers unable to connect to each other

Featured Replies

A few months ago out of the blue my docker containers were unable to communicate between each other using the local subnet I am using (192.168.1.0/24). I can reach them via any other device on the subnet no problem.  After a large struggle,  I found that they will communicate via the docker subnet? (172.17.0.XXX). This provided an immediate solution but not an answer to what happened as I have had this setup for several years without issue. The issue using the docker subnet (or whatever it is actually referred to) is that the IP changes randomly and then I have to go through a bunch of dockers to reflect these changes. Any ideas to a solution, one way or another?

Did you do an upgrade recently? There was a change in the default behavior of docker networking - even for existing docker installs. I don't recall if it was the 6.8 or 6.9 release that did this, but I noted similar issues.

 

If you look at the Docker page, you should see that many/all of them are on a 172.* subnet.

 

Can't explain all the details to you, I'm sure someone will stop by who can, but it was intentional and it did cause me a few headaches. Ended up having to reconfigure a few things from the 172.* network to the 192.168.* IP address to talk "back" to the server that way.

  • 2 weeks later...
  • Author

Any other advice on this? It is rather frustrating. Using the 172.* subnet works, but the ip's for the dockers on this subnet are not static, so I am constantly having breaks in the communication between dockers and have to go into them and change the ip's around when they end up changing at random. 

Are the containers all using bridge networking, or on a separate docker network?  As you already noticed, using 172.* is definitely not how you want to do things.

  • Author

Yes, most of them are using bridge. 

Then you reference within the app the host IP address and the port #  (eg: from Radarr)

 

image.png.5abe80e94717c4b0592e709493f8958e.png

  • Author

Right. That is how I had it for years, no issue. All of a sudden dockers will not communicate with each other using the Host IP and I fail to understand why. I can and do access these dockers via the host ip and corresponding port from anywhere else, except another docker.

unraid-1.thumb.JPG.7a265d2e09b3c99185255f1821394b30.JPG

 

This was my previous setup, which no longer works.

unraid-2.thumb.JPG.dfab5bf560a923cbee1609daed6377dc.JPG

 

Now to get them to work I have to use this, which is problematic.

unraid-3.thumb.JPG.8e0e8e23d9bdcbcba2fdc6adab44f79e.JPG

  • 3 weeks later...
  • Author

Any further ideas on why this is happening?

  • 1 year later...

Reviving this old threat as I experience the same issue.
Updated Unraid to 6.10 and now the dockers run in the subnet 172.17.0.X.

My actual LAN is in 192.168.178.X

 

I have some docker in bridge or host mode which works, but I do have some as br0 with static IPs in the range of 192.168.178.X.

 

The br0s now cannot find the dockers in host or bridge mode, anymore.

 

Everything worked fine before and I am not very keen to change all settings in some of the clients, etc.

 

Any way to just bring the docker network behaviour back to how it used to be in my environment?

  • 2 years later...

I am having this problem, and have had it for years now.  I've found several posts about it, and no one has a solution as of yet.  

  • Community Expert
4 hours ago, PoppaJohn said:

I am having this problem, and have had it for years now.  I've found several posts about it, and no one has a solution as of yet.  

I'm guessing you have containers on host networking, or trying to communicate between the default bridge and other networks... if so this is a docker networking security measure.
There is a feature in Unraid that works around this.

If you stop the docker service under Settings > Docker, you will find a setting named "Host access to custom networks"
Enable this and restart the docker service, and your containers should be able to communicate with other containers.

There are other approaches with custom docker networks, but this should get you up and running.

Thanks for the reply tjb_altf4 

I tried using that setting, without completely understandign it, just to see if it would work.  And it didn't solve my problem.

I did find a work around, though, and since all the containers are using the same IP address, and even though I couldn't connect to outside containers using that IP address, I tried using the 127.0.0.1:port (loopback) and that worked.  Since each of the dockers have a different port, I was able to make them all connect to each other as needed using this.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.