When I enable DHCP on my pihole instance running in docker, the FTL service goes offline and causes the error below.
There was a problem applying your settings.
Debugging information:
PHP error (2): fsockopen(): unable to connect to 127.0.0.1:4711 (Connection refused) in /var/www/html/admin/scripts/pi-hole/php/FTL.php:47
My container is connected to a macvlan network, so containers appear to be full machines, and have no port collisions. I have tried exposing all ports and just the ports required (53 tcp and udp, 67 udp, 80 TCP, and 443 TCP. I get the error with both versions of the container.
DNS resolves, so long as DHCP is turned off.
Expected Behaviour:
I expected to enable DHCP without an error, so I can move DHCP from my router to my pihole.
You could refer to our Quick start sample configuration for Docker:
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
(...)
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed