Hi,
I'm running pi-hole on a QNAP NAS inside a docker container (official image).
When I "first" start the container, everything works smoothly and as a byproduct an /etc/pihole/local.list
file is created that maps the container IP to the pihole
and pi.hole
host names.
When I restart the container, the start process eventually times out and I get a this on the console:
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is not available
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] syncing disks.
[s6-finish] sending all processes the TERM signal.
After removing the local.list
file and restarting the container, pi-hole comes up again without any issues.
I am providing two local DNS servers for the container using the DNS1
and DNS2
environment variables.
The container's resolv.conf strangely only mentions nameserver 127.0.0.11
although I'm explicitely specifying two nameservers with the container config.
Please follow the below template, it will help us to help you!
Expected Behaviour:
Smooth startup.
Actual Behaviour:
Timeout causing a container restart loop.
Debug Token:
[✓] Your debug token is: 66s36mve5t