Hi!
I am trying to test Pi-Hole on my MacOS using docker containers. For that, I have this compose file:
services:
pihole:
container_name: pihole
image: pihole/pihole:2024.07.0
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- 5333:53/tcp
- 5333:53/udp
- 6777:67/udp
- 8001:80/tcp
environment:
- TZ=America/Sao_Paulo
- DNSMASQ_USER=root
volumes:
- ./pihole/etc-pihole:/etc/pihole
- ./pihole/etc-dnsmasq.d:/etc/dnsmasq.d
I just modified the host ports so that I don't have to worry for now with other services that might be using those ports.
With that compose file, I run this command:
$ docker compose up -d
And unfortunately the result from docker logs -f pihole
is this:
β― docker compose up
[+] Running 2/2
β Network rpi_default Created 0.1s
β Container pihole Created 0.1s
Attaching to pihole
pihole | s6-rc: info: service s6rc-oneshot-runner: starting
pihole | s6-rc: info: service s6rc-oneshot-runner successfully started
pihole | s6-rc: info: service fix-attrs: starting
pihole | s6-rc: info: service fix-attrs successfully started
pihole | s6-rc: info: service legacy-cont-init: starting
pihole | s6-rc: info: service legacy-cont-init successfully started
pihole | s6-rc: info: service cron: starting
pihole | s6-rc: info: service cron successfully started
pihole | s6-rc: info: service _uid-gid-changer: starting
pihole | s6-rc: info: service _uid-gid-changer successfully started
pihole | s6-rc: info: service _startup: starting
pihole | [i] Starting docker specific checks & setup for docker pihole/pihole
pihole | [i] Setting capabilities on pihole-FTL where possible
pihole | [i] Applying the following caps to pihole-FTL:
pihole | * CAP_CHOWN
pihole | * CAP_NET_BIND_SERVICE
pihole | * CAP_NET_RAW
pihole | * CAP_NET_ADMIN
pihole | [i] Ensuring basic configuration by re-running select functions from basic-install.sh
pihole |
pihole | [i] Installing configs from /etc/.pihole...
pihole | [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[β] Installed /etc/dnsmasq.d/01-pihole.conf
[β] Installed /etc/dnsmasq.d/06-rfc6761.conf
pihole |
pihole | sed: couldn't open temporary file /etc/pihole/sedcRHggR: Permission denied
[β] Installing latest logrotate script
pihole | [i] Creating empty /etc/pihole/setupVars.conf file.
pihole | [i] Assigning random password: wcz4S8ws
pihole | [β] New password set
pihole | [i] Added ENV to php:
pihole | "TZ" => "America/Sao_Paulo",
pihole | "PIHOLE_DOCKER_TAG" => "",
pihole | "PHP_ERROR_LOG" => "/var/log/lighttpd/error-pihole.log",
pihole | "CORS_HOSTS" => "",
pihole | "VIRTUAL_HOST" => "b6d194d3786e",
pihole | [i] Using IPv4 and IPv6
pihole |
[β] Installing latest Cron script
pihole | [i] setup_blocklists now setting default blocklists up:
pihole | [i] TIP: Use a docker volume for /etc/pihole/adlists.list if you want to customize for first boot
pihole | [i] Blocklists (/etc/pihole/adlists.list) now set to:
pihole | https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
pihole | [i] Configuring default DNS servers: 8.8.8.8, 8.8.4.4
pihole | [i] Applying pihole-FTL.conf setting LOCAL_IPV4=0.0.0.0
pihole | [i] FTL binding to default interface: eth0
pihole | [i] Enabling Query Logging
pihole | sed: couldn't open temporary file /etc/dnsmasq.d/sedmAgLeX: Permission denied
pihole | s6-rc: info: service _startup successfully started
pihole | s6-rc: info: service pihole-FTL: starting
pihole | s6-rc: info: service pihole-FTL successfully started
pihole | s6-rc: info: service lighttpd: starting
pihole | s6-rc: info: service lighttpd successfully started
pihole | s6-rc: info: service _postFTL: starting
pihole | s6-rc: info: service _postFTL successfully started
pihole | s6-rc: info: service legacy-services: starting
pihole | Checking if custom gravity.db is set in /etc/pihole/pihole-FTL.conf
pihole | s6-rc: info: service legacy-services successfully started
pihole | [i] Creating new gravity database
pihole | [i] Migrating content of /etc/pihole/adlists.list into new database
pihole | [i] Neutrino emissions detected...
[β] Pulling blocklist source list into range
pihole |
[β] Preparing new gravity database
[β] Creating new gravity databases
pihole | [i] Using libz compression
pihole |
pihole | [i] Target: https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
pihole | [i] Status: Pending...Stopping pihole-FTL
pihole | pihole-FTL: no process found
[β] Status: Retrieval successful
pihole | sed: couldn't open temporary file /etc/pihole/sedVnetDN: Permission denied
[β] Parsed 0 exact domains and 0 ABP-style domains (ignored 128572 non-domain entries)
pihole | Sample of non-domain entries:
pihole | - "# title: stevenblack/hosts"
pihole | - "#"
pihole | - "# this hosts file is a merged collection of hosts from reputable sources,"
pihole | - "# with a dash of crowd sourcing via github"
pihole | - "# date: 06 december 2024 14:32:23 (utc)"
pihole |
pihole |
[β] Building tree
[β] Swapping databases
pihole | [β] The old database remains available
pihole | [i] Number of gravity domains: 0 (0 unique domains)
pihole | [i] Number of exact blacklisted domains: 0
pihole | [i] Number of regex blacklist filters: 0
pihole | [i] Number of exact whitelisted domains: 0
pihole | [i] Number of regex whitelist filters: 0
[β] Cleaning up stray matter
pihole |
pihole | [β] DNS service is NOT running
pihole |
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Pi-hole version is v5.18.3 (Latest: v5.18.3)
pihole | web version is v5.21 (Latest: v5.21)
pihole | FTL version is v5.25.2 (Latest: v5.25.2)
pihole | Container tag is: 2024.07.0
pihole |
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
pihole | Stopping pihole-FTL
pihole | pihole-FTL: no process found
This output goes infinitely, what should I do to have it working?