IMPORTANT: When using this Docker image, please report any bugs or suggestions to this repository directly.
Pi-hole:
Unbound:
Hyperlocal:
Copy example.env to .env and change the parameters
cp example.env .env
vi .env
Start the container
docker-compose up -d
Check the logs
docker-compose logs -f
If you get the following error
pihole | Starting unbound
pihole | [✗] DNS resolution is currently unavailable
uncomment the following line in the docker-compose.yaml
#- ./resolv.conf:/etc/resolv.conf
and restart the container
docker-compose up -d --force-recreate
docker exec -it pihole-unbound bash
dig github.com @127.0.0.1 +short
dig sigfail.verteiltesysteme.net @127.0.0.1 | grep status
dig sigok.verteiltesysteme.net @127.0.0.1 | grep status
If you are running other docker containers on the same host and cannot use name resolution within these containers, you have to modify /etc/resolvconf.conf on your host system and uncomment the following:
# If you run a local name server, you should uncomment the below line and
# configure your subscribers configuration files below.
name_servers=127.0.0.1
Write the changes to your resolv.conf:
sudo resolvconf -u
See also StackExchange