Please follow the below template, it will help us to help you!
If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx
instead of lighttpd
, or there is some other aspect of your install that is customised) - please use the Community Help category.
Expected Behaviour:
I run Pi-hole in a docker environment on Ubuntu 22.04 LTS with Portainer. Additionally I have the cloudflared-container running (in a separate docker network (IP: 10.0.0.5)). I expect the pihole -g
command to run smoothly and with our errors.
Docker Compose File
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
environment:
TZ: 'Europe/Berlin'
# WEBPASSWORD: 'set a secure password here or it will be random'
# Volumes store your data between container upgrades
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
labels:
- "traefik.enable=true"
- "traefik.http.routers.pihole.rule=Host(`pihole.internal.local`)"
- "traefik.http.services.pihole.loadbalancer.server.port=80"
- "traefik.http.routers.pihole.entrypoints=web"
# 53/udp
- "traefik.udp.routers.53-udp.entrypoints=53-udp"
- "traefik.udp.routers.53-udp.service=pihole-53-udp"
- "traefik.udp.services.pihole-53-udp.loadbalancer.server.port=53"
# 53/tcp
- "traefik.tcp.routers.53-tcp.rule=HostSNI(`*`)"
- "traefik.tcp.routers.53-tcp.entrypoints=53-tcp"
- "traefik.tcp.routers.53-tcp.service=pihole-53-tcp"
- "traefik.tcp.services.pihole-53-tcp.loadbalancer.server.port=53"
cap_add:
- NET_ADMIN
restart: unless-stopped
networks:
web: # communication with Traefik
pihole_net: # communication with cloudflared
ipv4_address: 10.0.0.3
# Cloudflared for DoH
cloudflared:
container_name: cloudflared
image: visibilityspots/cloudflared:latest
restart: unless-stopped
networks:
pihole_net:
ipv4_address: 10.0.0.5
networks:
web:
external: true
pihole_net:
driver: bridge
ipam:
config:
- subnet: 10.0.0.0/29
Actual Behaviour:
Instead the pihole -g
command fails with the error:
[✗] DNS resolution is currently unavailable
[i] Time until retry: 113^C
[i] User-abort detected
[✓] Cleaning up stray matter
[✓] FTL is listening on port 53
[✓] UDP (IPv4)
[✓] TCP (IPv4)
[✓] UDP (IPv6)
[✓] TCP (IPv6)
[✓] Pi-hole blocking is enabled
Debug Token:
https://tricorder.pi-hole.net/xG82kCxx/
Thanks in advance,
Benedict