pihole inside Synology Docker
Download the image
- Open the Docker application inside the DSM portal
- Select Registry in the left menu
- Use the search box on the right and search for pihole
- Once the image was found, right click it and choose Download this image
- You can select the version you want to download, default: latest
- If you open the image menu von the left you will see an animated database logo next to your new image. It proofs that the download is in progress.
- DSM will show a notification (top right) once the download has finished
Launch the image (create a container)
- Click on image in the left menu
- On the right click on the next cloud image you just downloaded
- Click on Launch in the top menu
- In the popup window click on advanced settings
- Check enable auto-restart
- Under the network tab select the checkbox on the bottom [] use the same network as docker host
It's important to understand that this will require the free port 53 on your NAS. Alternative solutions are available but I won't describe them here.
- Under the environment tab set / add
ServerIP = the IPv4 address of your NAS
optional: ServerIPv6 = the IPv6 address of your NAS
WEB_PORT= e.g. 8888 or any other free port on your NAS, for the pihole web interface
WEBPASSWORD = mypassword / or leave this empty for no password
TZ = your tz database timezone code (see here)
- Finish the wizard
Using pihole
1. Check if the web interface comes up under http://YOURIP:YOURPORT/admin
Older versions required the /admin otherwise you'd have seen an error message!
2. For a manual test modify your PCs DNS server to the ip address of your pihole. If it works, change the DNS server in your router to your pihole
Updating pihole container
- Export your settings via the pihole web UI (Settings - Teleporter - Backup)
- In the docker registry download the latest image version
- Stop your running pihole container
- Clear the docker container (Synology: Docker - Container - ACTIONS - clear)
- Start the docker container
- Import your settings via Teleporter (see 1.)