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.
Message added by spants,

This template is depreciated as it is >4 years old. There are newer versions available

[SUPPORT] pihole for unRaid - Spants repo

Featured Replies

On 10/17/2022 at 11:50 AM, idscomm said:

Hey, I know this message is 2 years old but I am currently struggling with Pi-hole hostname ... kept using random generic name. Would you be able to tell me if this is still working? I am not sure what you mean by extra parameters... 

 

Thanks! 

Please accept my apologies for the delay...

In the Pihole container (edit) and switch to advanced view.

Add the following to the Extra Parameters: --hostname=nameyouwant

1325068315_Screenshot2022-11-01at4_11_11PM.thumb.png.db7f16ed99b8ee0cf402db9b71ceb5ab.png

 

Before:

1098938207_Screenshot2022-11-01at4_09_20PM.png.cc0196da446871d20c8412f569eb1790.png

 

After:

1917126596_Screenshot2022-11-01at4_10_32PM.png.d482972101acf31bb8a586662a2a1b8c.png

  • Replies 1.1k
  • Views 331.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I just wanted to share a trick I used to have hostnames show up in the Pihole Dashboard for my local devices instead of IP addresses. Like this:     First make a copy of the /etc/

  • Hi, I wanted to use this pihole docker as my second dns server, i already have a hardware raspberry pi as my main pihole dns, but having a backup is always good. I was wondering how i could

  • There is a section on the readme that will help.   0) If you dont have python3 on your unRaid, install it via the nerdtools plugin.   1) find the path for /etc/pihole/  - for me it

Posted Images

Good Afternoon,

 

First time Unraid user here... I am having the issue of I can only setup pihole to work DHCP mode, due to my router. Which once enabled in Pihole it works like it should. ( pihole DHCP on, router DHCP off).

 

My issue is anytime I have to reset my host Unraid machine, my Unraid machine cannot get a local ip address so the unraid web ui never starts. I have to turn my DCHP server off again , enable through my router, then everything goes back to working properly.

 

Is there an option im missing here to prevent this from happening on the next reboot?

 

Thanks

11 minutes ago, Mrtj18 said:

My issue is anytime I have to reset my host Unraid machine, my Unraid machine cannot get a local ip address so the unraid web ui never starts.

You should set the IP manually on the server instead of letting it get one from DHCP.

what should i change?

 

If I change the fixed IP to (192.168.1.250 the address I have for my Unraid server) I get the following error:

 

Command executiondocker run
  -d
  --name='pihole'
  --net='br0'
  --ip='192.168.1.250'
  --privileged=true
  -e TZ="America/Los_Angeles"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Tower"
  -e HOST_CONTAINERNAME="pihole"
  -e 'TCP_PORT_53'='53'
  -e 'UDP_PORT_53'='53'
  -e 'UDP_PORT_67'='67'
  -e 'TCP_PORT_80'='80'
  -e 'TCP_PORT_443'='443'
  -e 'PIHOLE_DNS_'='127.0.0.1;1.1.1.1'
  -e 'TZ'='America/Chicago'
  -e 'WEBPASSWORD'='admin'
  -e 'INTERFACE'='Bridge'
  -e 'ServerIP'='192.168.1.252'
  -e 'ServerIPv6'=''
  -e 'IPv6'='False'
  -e 'DNSMASQ_LISTENING'='all'
  -e 'WEBUIBOXEDLAYOUT'='boxed'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.webui='http://[IP]:[PORT:80]/admin'
  -l net.unraid.docker.icon='https://i.imgur.com/OWkNcEn.png'
  -v '/mnt/user/appdata/pihole/pihole/':'/etc/pihole/':'rw'
  -v '/mnt/user/appdata/pihole/dnsmasq.d/':'/etc/dnsmasq.d/':'rw'
  --cap-add=NET_ADMIN
  --restart=unless-stopped 'pihole/pihole:latest'

a1a3163844bc0f0d2b57b02e9c42af8c5f0601f04bb229e81c82c60450c28167
docker: Error response from daemon: Address already in use.

 

 

Im lost here....

 

Screenshot 2022-11-06 164121.png

1Screenshot 2022-11-06 164232.png

Edited by Mrtj18

When you setup/installed unraid you should have set a staticIP for the unraid server instead of DHCP. This way even if DHCP is not available which is your case, The server will still work on your private subnet as its manually set and knows how to route across your network without contacting DHCP. 

Is there a way to double check, what I may have set the static IP to be? When I did the initial setup?

28 minutes ago, Mrtj18 said:

Is there a way to double check, what I may have set the static IP to be? When I did the initial setup?

My box is offline atm due to moving. You access the Unraid WebGUi and then in the admin settings you can access network (Likely) settings for the host. From there that should give you an indication of how the IP address is setup.

10 hours ago, Mrtj18 said:

what should i change?

 

If I change the fixed IP to (192.168.1.250 the address I have for my Unraid server) I get the following error:

I was talking of manually setting the ip of the unraid server itself, settings->network settings

6 hours ago, Kilrah said:

I was talking of manually setting the ip of the unraid server itself, settings->network settings

Oh okay gotcha, thanks for the help. I found my static IP for my unraid server and plugged it in to the server IP option towards the bottom, and the docker image built correctly... Thank you for the direction!

I still can't get this to work..... I may just have to stick with the rpi zero config i have. After correcting my settings in the network panel of unraid. I still have the issue after every reboot, the system still does not have Internet connection, even though I set the IP address to static.😞

  • 3 weeks later...

By the way I figured out my issue, If anyone reads this, there is a required port section in the docker container setup. I had to open port 67 on my router for the DCHP server to work correctly, and assign it to my lan ip for my unraid server. I have never seen this mentioned anywhere. Hope this helps someone, that maybe stuck like I was.

  • 2 weeks later...

Pi-hole recently stopped working on my Unraid machine. When attempting to fix the container, I noticed the custom br0 network type was missing from the dropdown menu within the container settings. Running the following fixed my issue and restored br0:

 

rm /var/lib/docker/network/files/local-kv.db
/etc/rc.d/rc.docker restart

 

I hope this helps. 

  • 4 weeks later...
On 1/5/2022 at 9:49 AM, norp90 said:

Having issues getting latest release working?

 

- If pihole running but status in UI/API is not shoiwn active, add env. variable 'DNSMASQ_USER' with value = 'root'. This should be fixed soon in a new release, they are working on it, so remove this variable again once new update released and see if it's no longer required.

 

- Other issues? Do a review of all of your docker template env. variables vs. the current recommend and optional ones here https://github.com/pi-hole/docker-pi-hole. There have been a lot of changes recently that haven't been reflected in Unraid automatically. I suggest removing old ones no longer in use or only optional and see if that fixes issues, then add back any you know you need. The changes in the DNS ones to a single PIHOLE_DNS one was a big change recently to watch for.

1 Year later and i got the exact same Problem, i was about to give up but saw ur post. I tried it and it WORKS!!! Thanks!

I'm having issues with forwarded ports being intermittently inaccessible when the pihole docker is running, specifically Plex and Overseer. Both are running in their own network but don't have their own IP. I've tried giving them their own IP, but my crappy Google Wifi router doesn't allow me to select a static IP'd device to set a port forward - very frustrating. 

 

Seems like my options are to run pihole from a separate device or look into another router. 

How do I migrate PiHole to a docker on a new server?  I have an older unRAID server and a newer server.  I am migrating dockers, etc to the new server.  I don't see any sort of an export settings function in the PiHole web UI - how do I export my settings and whitelist to my new docker?  Dockers on both machines are running PiHole 5.14.2.

To answer my own question - On the web UI under the Settings page there is a tab called Teleporter.  That allows you to export and import settings.

 

Not an obvious name, at least not to me, but it appears to work well once you find it.

Recently I moved my Unraid server to different subnet 192.168.68.x instead 192.169.0.x, in this process I lost my custom network config, I tried to recreate it, but custom network is created in 172.x subnet. How do I create a custom network so I can use a static IP in 192.168.68.x subnet?

Sent from my SM-G998B using Tapatalk



On 1/19/2023 at 11:13 AM, Ademar said:

why does the container run with "--cap-add=NET_ADMIN"? It seems to work fine without it.

 

Copy and pasted from the pihole entry on dockerhub.

 

  • As of 2022.04.01, setting CAP_NET_ADMIN is only required if you are using Pi-hole as your DHCP server. The container will only try to set caps that are explicitly granted (or natively available)

Does anyone else have the problem that the Docker overview for pihole says "not available" in the update column? So far it worked without problems and with all my other Docker containers the update check works. I have already tried suggestions from the forum (DNS change), but the problem persists with the pihole container.

8 hours ago, FDM80 said:

 

Copy and pasted from the pihole entry on dockerhub.

 

  • As of 2022.04.01, setting CAP_NET_ADMIN is only required if you are using Pi-hole as your DHCP server. The container will only try to set caps that are explicitly granted (or natively available)

Thanks. "Required Port" 67 could also be named something else to make it clear it is only needed for DHCP?

27 minutes ago, dcb said:

Does anyone else have the problem that the Docker overview for pihole says "not available" in the update column? So far it worked without problems and with all my other Docker containers the update check works. I have already tried suggestions from the forum (DNS change), but the problem persists with the pihole container.

Yes, I have that problem with multiple containers, not just this one. It comes and goes.

Hi, after an update i now receive the following page instead of the pihole gui. API is still working, Pi-Hole too.

 

Any idea why this is happening?

 

image.thumb.png.3bbf63838964c290e0e0c5ffe1bbbcc6.png

3 hours ago, CryPt00n said:

Any idea why this is happening?

Because you need to access http://blah/admin, not the root

Edited by Kilrah

Low importance question here:
I just noticed today (did work last week), that the link to the support forum seems to be wrong.
image.png.41c69fab1f9292ba99df0a4ebc40a459.png

It's pointing to https://unraid.net/forum/index.php?topic=50453.0

image.png.6ff928a2e6e9f2507e6cabcc3ffa4b5e.png

 

Would you mind fixing it, when you change the template the next time?

As said before: not high prio, but simply convenient 🙂

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.