Hello everyone. I'm setting up a Docker Swarm consisting of a Synology NAS DS220 + and two Raspberry Pi 4 with 2 and 4 Gb of Ram. When I try to launch PiHole via the following composer:
---
version: "3"
services:
pihole:
image: pihole/pihole:latest
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp"
- "50001:80/tcp"
environment:
PUID: 1000
PGID: 1000
TZ: 'Europe/Rome'
WEBPASSWORD: ''
volumes:
- '/volume1/docker/pihole/config:/etc/pihole/'
- '/volume1/docker/pihole/dnsmasq:/etc/dnsmasq.d/'
deploy:
replicas: 1
The service tries to start up on the various nodes of the swarm starting from the raspberry, but always failing with the following log:
[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] Installing configs from /etc/.pihole...
[i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!
[i] Installing /etc/dnsmasq.d/01-pihole.conf...
[✓] Installed /etc/dnsmasq.d/01-pihole.conf
[i] Installing /etc/.pihole/advanced/06-rfc6761.conf...
[✓] Installed /etc/dnsmasq.d/06-rfc6761.conf
/etc/.pihole/automated install/basic-install.sh: line 1299: /etc/pihole/dns-servers.conf: Permission denied
[cont-init.d] 20-start.sh: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
the only node on which it starts is the NAS even if the service does not work, that is, even if my router uses a swarm address as dns the advertisements are not filtered. Anyone have any idea why this behavior?