Open wassereimer86 opened 2 years ago
I know this is an old issue but I just ran into the same thing: the instructions could be more clear but this means you should run the script on the docker host machine, point --dir
to the directory that is mapped as a volume to the pihole container, and all --docker
does is restart a container named pihole
after it's done manipulating the files.
+1 the instructions could be more clear
yes, it is pretty hard to install.
root@PiHole:~# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
02dda16944b2 pihole/pihole:latest "/s6-init" 17 hours ago Up 9 hours (healthy) 0.0.0.0:53->53/tcp, :::53->53/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:53->53/udp, :::80->80/tcp, :::53->53/udp, 67/udp pihole
when I run python3 whitelist/scripts/whitelist.py --docker
I get [X] /etc/pihole was not found
because of course, it only exists inside the VM, I could do a volume mapping myself but what is the point of the --docker
flag if it doesn't automate the solution to the volume? hehehe
Solved it with:
python3 whitelist/scripts/whitelist.py --dir ~/etc-pihole/ --docker
I haven't notice that the pihole container from their docker-compose version already mapped the etc/pihole themselves. Thx
Hi there, the instructions say:
So i should run a python3 command in case i don't have python3? There is only one .sh file for the referral-sites. How do i install the whitelist?