deividgdt / ytadsblocker

YTadsblocker is a script to block all the Youtube's advertisement in Pi-Hole
GNU General Public License v3.0
89 stars 12 forks source link

Running with dockerized version of pi hole instruccions #5

Closed DanielRamosAcosta closed 3 years ago

DanielRamosAcosta commented 3 years ago

I'm using pi hole dockerized version as I have several docker containers in my Raspberry. How do I run this script? from outside the container? should I enter the container and execute the script?

I've tried reading the source code but still, I cannot guess what to do.

Thanks!

deividgdt commented 3 years ago

Hi Daniel,

You can run this script in the Pihole container by executing the script as follow:

docker exec -it your_pihole_container bash
wget https://raw.githubusercontent.com/deividgdt/ytadsblocker/master/ytadsblocker.sh
chmod u+x ytdadsblocker.sh
./ytadsblocker.sh install

Once the script is installed you can run: ./ytadsblocke.sh start &

Also, you can take a look to my blog, where someone had some errors installing the script in a container Pihole, maybe it could help you:

Youtube Ads blocker 3.0 for Pihole 5.0

Kind regards,

DanielRamosAcosta commented 3 years ago

Thanks @deividgdt !