I set up Pi-hole on a Raspberry Pi already a while ago and it is running fine. These are my notes that I took during installation. Unfortunately, the lack some details…
- Download the ‘
docker_run.sh
‘ script from https://github.com/pi-hole/docker-pi-hole/blob/master/docker_run.sh - Transfer the script to the Raspberry Pi
scp docker_run.sh pi@[IP]:docker_run.sh
- Connect with SSH to the Raspberry Pi
- run the script
sudo sh docker_run.sh
The script starts well but then encounters an issue after running the container:
Starting up pihole container docker_run.sh: 19: [: healthy: unexpected operator
.docker_run.sh: 19: [: healthy: unexpected operator
.docker_run.sh: 19: [: healthy: unexpected operator
.docker_run.sh: 19: [: healthy: unexpected operator
List all Docker containers
sudo docker container ls
Check the container
sudo docker inspect [Container ID]
Set the password for Pi-hole
Search the log file for the password
sudo docker logs pihole