Docker Swarm and Client Count Issues


#1

Hi, I have been using Pihole on Docker with great success for about 6 months and decided to graduate to swarms. Pihole is my first attempt.

I have successfully created a service/swarm and the two containers are working as expected in relation to providing DNS to the network, fail over etc.

One difference now on the Pihole GUI is the “clients” are only showing as “2” (localhost and 10.255.0.2) any other device does not even show up as an IP address. I have at least 34 devices on my network when viewed with the standard Docker setup so this is purely a swarm issue that I have probably created.
I suspect that the swarm is NATing the real network addresses in some way so they only appear from that one IP.
Can anyone provide a clue as to why this might be the case and how to resolve it?

Here is my run command:
docker service create --name pihole
–dns=127.0.0.1 --dns=1.1.1.1
-p 53:53/udp
-p 443:443/tcp
-p 53:53/tcp
-p 32774:80/tcp
–mount type=volume,src=pihole,dst=/etc/pihole
–mount type=volume,src=dnsmasq.d,dst=/etc/dnsmasq.d
–replicas 2
–env TZ=Australia/Melbourne
–env ServerIP=192.168.4.168
–env DNS1=192.168.4.1
–env DNS2=192.168.4.1
–env WEBPASSWORD=pihole
–env IPv6=False
–mode replicated
pihole/pihole:latest

thanks,


Docker Swarm Possible?
assigned diginc #2