-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not using latest blacklists even when completely restarting docker container #148
Comments
If you look at your container startup log it will full of errors because your configuration is wrong. Your Information about how to set those correctly are all in the readme. |
Hmm, ok thank you for that quick response. I've used the RPi before, a couple of years ago, and remember having difficulties knowing exactly what defines these different lists then too. But firstly I guess I need to clear this up. When you say "Adlist" you mean that I have to go into the dashboard of my pihole and enter the lists individually there, right? Instead of using pihole-updateLists in any way really. Because docker-pi-hole doesn't (to my knowledge) have any way of specifying lists in its docker-compose file. For the IOSD lists, I simply used their guide here: Their lists are a bit weird, as the links seem to be scripts that download the files directly, instead of allowing me to display them raw in the browser. Do you not think these will work with pihole if I add them as normal ADLISTS in the web interface? And finally, for the WHITELIST_URL lists, is there no way for pihole-updateLists to use this URL then? |
And, btw, should the "pihole-updatelists.conf" file in the volume "etc-pihole-updatelists" be empty? Or is it just that when I started the container the first time I had it misconfigured and thus the docker-compose script didn't populate that file, and now that the file exists there will be no further additions to it through the environment variables in the docker-compose file? |
This is the corrected configuration:
(I am unsure if line breaks are valid in that file format so I'm using space as a separator) ...and you add these in the Pi-hole interface directly:
You do not place links to individual adlists in
No, I mean a list like this one.
Yes. If you're using the environment variables in the docker-compose file they override the config, you don't even have to add the volume - that's why it's commented by default. The option to mount the volume to access the config is for people who need advanced configuration which is not available through the environment variables.
The script first loads the config then parses environment variables which override config ones. The config is not written to. |
Been trying to configure pihole now for a couple of days and it seems to be working ok (though I can't really get the "DeveloperDan's" list to work (but that's another issue).
What my current issue is is that I can't seem to add more lists to the pihole-updateLists container through the environment variables. But maybe I just don't understand how they are supposed to work.
I have this
docker-compose.yml
:docker-compose.yml
version: "3"More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
And when I inspect the running container, I see that the environment contains these lists that I have in the
docker-compose.yml
file:docker container inspect pihole
But for some reason the actual lists aren't updated in the DB. If I go to "Whitelists" and e.g. search for
svt
, it doesn't show up.Between the edits I make to the
docker-compose.yml
file, I dodocker compose down
and thendocker compose up -d
.The text was updated successfully, but these errors were encountered: