Thought I could get this sorted out myself, but it's become quite the hassle.
Coming over here from this pi-hole.net post.
Any help is much appreciated.
To sum up the most recent bits of it. I use a bonded connection, and that's the only way I am able to have the template command go through. I rarely get the WebUI for a few hours on and off (mostly off) and mobile devices not able to get an internet connection, and am finally setting out to resolve it once and for all.
When I use Bridge and everything else as close to the template as possible as suggested/"required" I get this error.
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name=‘pihole-template’ --net=‘bridge’ -e TZ=“America/Denver” -e HOST_OS=“Unraid” -e ‘DNS1’=‘8.8.8.8’ -e ‘DNS2’=‘8.8.4.4’ -e ‘TZ’=‘Europe/London’ -e ‘WEBPASSWORD’=‘admin’ -e ‘INTERFACE’=‘br0’ -e ‘ServerIP’=‘192.168.1.199’ -e ‘ServerIPv6’=’’ -e ‘IPv6’=‘False’ -e ‘DNSMASQ_LISTENING’=‘all’ -p ‘53:53/tcp’ -p ‘53:53/udp’ -p ‘67:67/udp’ -p ‘81:80/tcp’ -p ‘443:443/tcp’ -v ‘/mnt/cache/appdata/pihole/pihole/’:’/etc/pihole/’:‘rw’ -v ‘/mnt/cache/appdata/pihole/dnsmasq.d/’:’/etc/dnsmasq.d/’:‘rw’ --cap-add=NET_ADMIN --dns 127.0.0.1 --dns 1.1.1.1 --restart=unless-stopped ‘pihole/pihole:latest’
WARNING: Localhost DNS setting (–dns=127.0.0.1) may fail in containers.
7b8f86e3ec0969ce56595ef8271838e8a737e38d1bbd54ad55566f74eaa65a1e
/usr/bin/docker: Error response from daemon: driver failed programming external connectivity on endpoint pihole-template (a55246178777a4ba3d645c4a2bf038f99e74fe4f48bf10cd5f0bb01acea6f6b6): Error starting userland proxy: listen udp 0.0.0.0:67: bind: address already in use.
The command failed.
As far as I can tell there aren't any other services using these ports. And if there were, why wouldn't it error if using bond0 instead of Bridge?