I'm trying to get pi-hole running on my Late 2014 Mac-Mini (Intel core i5, 8 GB RAM, macOS Monterrey v12.6.3) by using Docker's pi-hole image. I'm using a docker-compose file mostly copied and set up from the GitHub page here.
However, after I run docker compose up -d
and access the admin console (which is also somehow only accessible from the machine running docker), I see the message "Lost connection to API". When I open the "Pi-hole diagnosis" page, it has the message: "DNSMASQ_CONFIG - FTL failed to start due to cannot access /etc/dnsmasq.d/sed8jlRXR: No such file or directory".
I took a look at the /etc/dnsmasq.d/
directory with the ls -l
command, and the sed
file exists, but has weird file properties/permissions - it has all question marks "?" for each field.
Can you help me understand what I'm doing wrong?
Here's my docker-compose.yml
file (sensitive info redacted):
version: "3"
# Example taken from the README in pi-hole's github
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
environment:
TZ: 'America/Denver'
WEBPASSWORD: 'password'
WEBTHEME: 'default-dark'
FTLCONF_LOCAL_IPV4: <my-ip-address>
DNSMASQ_LISTENING: all
# Volumes store your data between container upgrades
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
restart: unless-stopped
Here's my debug token: https://tricorder.pi-hole.net/BVelKxaj/
UPDATE (1 week later)
Since it looks like the debug token expires after 48 hours, I'll post a new, unexpired debug token: https://tricorder.pi-hole.net/Y55NO3aq/