Pihole is unhealthy - Could not resolve domain name

Hi,

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

LOGS:

[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: 8.8.8.8 & 8.8.4.4

DNSMasq binding to default interface: eth0

Added ENV to php:

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


  	"ServerIP" => "192.168.1.100",


  	"VIRTUAL_HOST" => "192.168.1.100",

Using IPv4 and IPv6

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

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

https://mirror1.malwaredomains.com/files/justdomains

::: 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 1.1.1.1 even after setting to
search domain.local
nameserver 127.0.0.1 or 8.8.8.8

Have also created a network

|Name|pub_net|
|---|---|
|ID|d59b29347711f15fa43d7aaa0bf139258eeffeecbd0721964d1ea8d1b4b774c8 |
|Driver|macvlan|
|Scope|local|
|Attachable|false|
|Internal|false|
|IPV4 Subnet - 192.168.1.130/24|IPV4 Gateway - 192.168.1.1|
|IPV4 IP range -|IPV4 Excluded Ips -|

|Container Name|IPv4 Address|IPv6 Address|MacAddress|Actions|
| --- | --- | --- | --- | --- |
|[pihole](http://192.168.1.130:9000/#/containers/a4287214dbda721e041d5f182f2de1343b1a8fccde88be65fed731a0662e7a47)|192.168.1.100/24|-|02:42:c0:a8:01:64|

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.