Trying to install pihole in a container on an RB5009 and it fails to start.
Message in the pihole admin page is:
TYPE: DNSMASQ_CONFIG
MESSAGE: FTL failed to start due to failed to create listening socket for port 53: Permission denied.
I have reinstalled about 10 times, checking the envs and mounts each time.
I even tried a different folders (instead of “disk1” I used “joseph”).
Still the same results.
What can I be doing wrong?
Thank you.
Inside the container, dnsmasq is trying to start. It can’t listen on port 53, which usually means something else is listening on that port already, or the user starting the daemon isn’t root and doesn’t have permission.
Post your veth and container config so we can rule out any bugs there.
Holy cow!
First, thank you, as always. I spent hours and hours researching and found the same info about something else running on port 53; then I spent hours trying to figure out how to figure out what, if anything, was running on port 53.
I just exported the config and removed everything that didn’t relate to the the container.
I was about to post it and noticed that the the container envs key DNSMASQ_USER was displayed in the export as "DNSMASQ_USER "
There was an extra space!
Removed it, started the container, and I think it’s working.
Here’s the broken config:
/interface bridge
add name=bridge1
add name=docker
/interface bridge port
add bridge=docker interface=veth1
/interface veth
add address=10.0.0.2/24 gateway=10.0.0.1 name=veth1
/ip address
add address=192.168.2.4/24 comment=defconf interface=bridge1 network=\
192.168.2.0
add address=10.0.0.1/24 interface=docker network=10.0.0.0
/container mounts
add dst=/etc/pihole name=etc_pihole src=/disk1/etc
add dst=/etc/dnsmasq.d name=dnsmasq_pihole src=/disk1/etc-dnsmasq.d
/container
add envlist=pihole_envs interface=veth1 logging=yes mounts=\
etc_pihole,dnsmasq_pihole root-dir=disk1/pihole
/container config
set registry-url=https://registry-1.docker.io tmpdir=disk1/pull
/container envs
add key=TZ name=pihole_envs value=America/New_York
add key=WEBPASSWORD name=pihole_envs value=mikrotik
add key="DNSMASQ_USER " name=pihole_envs value=root
/ip dhcp-server network
add address=192.168.2.0/24 comment=defconf gateway=192.168.2.2 netmask=24
/ip dns
set cache-max-ttl=3w cache-size=16384KiB servers=192.168.2.2
Yeah, that’ll do it.
Looks like you got it up and running.