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.

(SOLVED) Issues with assining static IP to Docker container (Pihole)

Featured Replies

I am having issues assigning a static IP to my PiHole docker container. I have tried following several different PiHole guides. Either something is wrong with my network settings or all PiHole guides are out of date.

 

The custom IP is on the left, my unraid server IP is on the right. if I understand correctly 192.168.2.1 should be on both sides.

I cannot connect to it with any of the ip addresses/port below.

image.png.2abe9b47289ca1adf387e64bb7130b35.png

 

Another note is that br0 is not available as a custom network option. I turned bridging off and on, that did not bring it back, so I created a new custom network.

image.png.719ad966d8bc290706b4ee84299a9b49.png

image.png.c414db2a68e89c4969e8697d1a1797aa.png

 

Thank you.

mcp-diagnostics-20240223-1017.zip

Solved by Opawesome

Hi,

Here are my (i) pihole docker container settings; (ii) Unraid network setting; and (iii) docker settings. They work on my system.

 

My router is set to use 192.168.92.2 as primary DNS server address.

 

 

Capture.PNG

Capture2.PNG

Capture3.PNG

  • Author

Thank you. I am thinking the issue is with br0 interface. Even though it is now enabled, I cannot select br0.

Unraid Docker Settings:

image.thumb.png.64cd3d1705632115abd309d3c5bbdbeb.png

 

Pihole Docker settings:

image.png.319d0ea10650059f86b9b261a4dba36c.png

Edited by chuckbucket

Have you tried stopping the array before enabling bridging, and then starting back the array ? Also, are your other settings the same as mine ?

Edited by Opawesome

  • Author

yes. they all look the same. I had the br0 disabled on the docker settings page, but have since enabled it. I have shut down the array multiple times toggled bridging mode several times.

  • Solution

Can you try maybe deleting the 192.168.2.0/8 custom docker network ? This /8 CIDR seems very wrong to me on the 192.168.X.X range, as it may overlap with the 192.168.1.0/24 network.

Edited by Opawesome

I indeed see "br-fccdcfbfa4d2 UP 192.168.1.1/8" in the ifconfig file of your diagnostics, which is overlapping with your 192.168.1.0/24 LAN. That could be the issue. I would try deleting this custom docker network.

Edited by Opawesome

  • Author

Issue is resolved.

I had the br0 network disabled. I could not find how to enable it so I created a custom network which overlapped br0 once it was enabled.

Solution:

  • I removed the custom network.
  • disabled Docker.
  • disabled IPv4 custom network.
  • saved.
  • enabled IPv4 custom network.
  • saved.
  • Enabled Docker.
  • saved,

 

Here are the settings that worked:

image.thumb.png.0b2bdf04e1187c8fa818be938a7d853f.png

 

 

Thank you for the help Opawesome.

  • chuckbucket changed the title to (SOLVED) Issues with assining static IP to Docker container (Pihole)

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.