Display MoreThey are the same thing - just renamed. Here
At the moment the LE addon is using pihole V 3.3 to use V4 you'll need to disable the pihole LE addon.
Download the new container:
docker pull pihole/pihole:latest
Then create and run a new script
docker run -d \
--name pihole \
-p 53:53/tcp \
-p 53:53/udp \
-p 80:80 \
-e DNS1=9.9.9.9 \
-e DNS2=149.112.112.112 \
-v /etc/localtime:/etc/localtime \
-v /storage/.config/pihole/:/etc/pihole \
-v /storage/.config/pihole/dnsmasq.d/:/etc/dnsmasq.d \
-v /storage/.config/pihole/html/:/var/www/html/html/ \
-h $(cat /etc/hostname) \
-e ServerIP=$(ip route get 9.9.9.9 | awk '{ print $NF; exit }') \
-e WEBPASSWORD=libreelec \
--restart=unless-stopped \
pihole/pihole:latest
That will get you running on 4.0. There may be issues as noted by @aptalca
Hello,
i tried this script but i am not able to have the web interface
Here you can find my logs:
# docker logs -f /pihole # Show docker 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
WARNING Misconfigured DNS in /etc/resolv.conf: Primary DNS should be 127.0.0.1 (found 192.168.0.31)
# Generated by Connection Manager
nameserver 192.168.0.31
nameserver 1.1.1.1
[i] Existing PHP installation detected : PHP version 7.0.33-0+deb9u5
[i] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf
chown: cannot access '/etc/pihole/dhcp.leases': No such file or directory
::: Pre existing WEBPASSWORD found
Using custom DNS servers: 127.0.0.1 & 1.1.1.1
DNSMasq binding to default interface: eth0
Added ENV to php:
"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",
"ServerIP" => "192.168.0.31",
"VIRTUAL_HOST" => "192.168.0.31",
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
http://sysctl.org/cameleon/hosts
simple_tracking.txt
simple_ad.txt
ad_servers.txt
::: Testing pihole-FTL DNS: FTL started!
::: Testing lighttpd config: Syntax OK
::: All config checks passed, cleared for startup ...
::: Docker start setup complete
[i] Pi-hole blocking is enabled
[✗] DNS resolution is currently unavailable
[✗] DNS resolution is not available
Display More
And also i don't know why i have this "DNS resolution is not available" as well.
Could you please me and let me know what i am missing?
i am a noobs in Docker.
Thanks in advance.
Configuration:
Rpi 3B+, LibreElec 9.1.501