Display MoreI just installed pi-hole. Excellent piece of SW!
First I tried Linux-Server image and it worked great! I allowed me to set my own port for WebGUI (8084 in my case). I wanted to try newer version, so I uninstaled this one and go to v4.1 by following Iridium's post and punkid's one.
So, after doing:
docker pull pihole/pihole:latest
I created script file:
Code Display Moredocker run -d \ --name pihole \ --cap-add NET_ADMIN \ -p 53:53/tcp \ -p 53:53/udp \ -p 80:80 \ -e DNS1=127.0.0.1 \ -e DNS2=1.1.1.1 \ -v /etc/localtime:/etc/localtime \ -v /storage/.config/pihole/:/etc/pihole \ -v /storage/.config/pihole/dnsmasq.d/:/etc/dnsmasq.d \ -v /storage/.config/pihole/html/:/var/www/html/html/ \ -h $(cat /etc/hostname) \ -e ServerIP=$(ip route get 127.0.0.1 | awk '{ print $NF; exit }') \ -e WEBPASSWORD=654321 \ --restart=unless-stopped \ pihole/pihole:latest
And everything worked great. I accessed config page normally. Since v4 pi-hole does not come with any blacklists I decided to add some:
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt
And that's it. Everything works.
But, one option remain problem for me. I already have multiple lighttpd servers runing on LE and in order to accomodate pi-hole I moved one to other port. I tried messing with -p option but everything except 80:80 is not working properly or at all. Any workaround is known?
Also, what about -e ServerIP? I put 127.0.0.1, but Iridium suggested 9.9.9.9 and punkid suggested 192.168.1.x. Should I use DNS address, internal host or LAN IP?
Apologies, super docker noob here, just followed blindly these steps on x86 (chrome box /w LE 9.0.2) and it worked great....until the reboot..
pi-hole doesn't seem to be running, I can't connect to the admin page docker says the container is up and running when running docker container ls command.
I've scrapped docker, reinstalled and followed the exact same steps that got it running the first time but it's behaving like after the 1st restart.
I don't know where to and how to look and troubleshoot, any help appreciated and sorry for the little added value on my end
UPDATE:
Stopping and removing the container then wiping the pihole folder in .config did the trick, I can get it up again over a fresh install; Not too sure how to troubleshoot surviving on restart....