Pihole is unhealthy - Could not resolve domain name


With fresh install of raspbian os & OMV , I am trying to install the pihole container in my docker - portainer for my raspberry pi 3


[s6-init] making user provided files available at /var/run/s6/etc…exited 0.

[s6-init] ensuring user provided files have correct perms…exited 0.

[fix-attrs.d] applying ownership & permissions fixes…

[fix-attrs.d] 01-resolver-resolv: applying…

[fix-attrs.d] 01-resolver-resolv: exited 0.

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts…

[cont-init.d] 20-start.sh: executing…

::: Starting docker specific checks & setup for docker pihole/pihole

[i] Update local cache of available packages…
[✓] Update local cache of available packages

[i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u8

[i] Installing configs from /etc/.pihole…

[i] Existing dnsmasq.conf found… it is not a Pi-hole file, leaving alone!

[i] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf…
[✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf

chown: cannot access ‘’: No such file or directory

chmod: cannot access ‘’: No such file or directory

chown: cannot access ‘/etc/pihole/dhcp.leases’: No such file or directory

::: Pre existing WEBPASSWORD found

Using default DNS servers: &

DNSMasq binding to default interface: eth0

Added ENV to php:

  	"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",

  	"ServerIP" => "",

  	"VIRTUAL_HOST" => "",

Using IPv4 and IPv6

::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))



::: 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

the nameserver in /etc/resolv.conf keeps changing each time i create the pihole container to even after setting to
search domain.local
nameserver or

Have also created a network

|ID|d59b29347711f15fa43d7aaa0bf139258eeffeecbd0721964d1ea8d1b4b774c8 |
|IPV4 Subnet -|IPV4 Gateway -|
|IPV4 IP range -|IPV4 Excluded Ips -|

|Container Name|IPv4 Address|IPv6 Address|MacAddress|Actions|
| --- | --- | --- | --- | --- |

Network options

parent wlan0

Kindly help me fix the problem, my modem does not block the ip addresses

make sure your host pihole directory is empty that host pihole is mounted witht the one from the container which measn when you update whtever of pihole it goes to your persisitant storage you can later transerfer to different container in future.

also do not use wlan0 , use ethernet nic interface.

thanks, did that. Also Didnt choose to go with custom network and it worked well. There was a spelling issue on the folder name. Now its all okay, thanks.