Skip to content
Home » pi-hole

pi-hole

INSTALLING PIHOLE ON RASPBERRY PI 5 WITH DOCKER

Assuming you already have a Raspberry Pi 5 setup with Debian, and also assuming you have Docker installed, here is how you setup Pi-Hole

Open a terminal

sudo su –
cd /home/yourusername

rm pihole.sh (if it exists)
nano pihole.sh
Copy this new docker script
https://github.com/pi-hole/docker-pi-hole/blob/master/examples/docker_run.sh
Change America/Chicago to America/New York
Save and Exit
sudo chmod u+x pihole.sh
./pihole.sh
Pihole now installs

Open a web browser and navigate to the IP/admin for example (not https)

Login… or if you did not get your password during the setup (happens sometimes)
From the terminal
docker exec -it pihole
sudo pihole -a -p
Create a new password

Back to your browser, and login.

Success