Score:0

Port conflict in Pi-Hole Docker installation with systemd-resolve process

eg flag

I am trying to install Pi-Hole alongside Nextcloud on my Raspberry Pi with Ubuntu 20.04. NextCloud is installed normally on the top of Ubuntu, whereas I am trying to install Pi-Hole in a container to avoid any conflicts with the webserver.

I am following this guide: https://rsw.io/how-to-install-pi-hole-in-a-docker-container-on-a-raspberry-pi/

This is the error I am getting

Status: Downloaded newer image for pihole/pihole:latest
Creating pihole ...
Creating pihole ... error

ERROR: for pihole  Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (56f233c57287a526a4e6adc3038d9359cda06ba8b51c0157146c42171cc47106): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use

ERROR: for pihole  Cannot start service pihole: driver failed programming external connectivity on endpoint pihole (56f233c57287a526a4e6adc3038d9359cda06ba8b51c0157146c42171cc47106): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use
ERROR: Encountered errors while bringing up the project.

Port 53 is already in use by systemd-resolve:

root@ubuntu:/home/ubuntu/pi-hole# sudo lsof -iTCP -sTCP:LISTEN -P -n +c 10
COMMAND       PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
systemd-re  41186 systemd-resolve   13u  IPv4 167233      0t0  TCP 127.0.0.53:53 (LISTEN)

I have tried (stupidly) to stop the process system-re but this has broken all the DNS.

What does the process systemd-resolve do and what can I do to avoid the conflict with port 53, please?

Level9 avatar
cn flag
Just a wild guess but this could be caused by the fact that you are running Ubuntu and not Raspberry Pi OS (Raspbian). I guess that most users of the docker-image uses the "default" OS and if you use Ubuntu you will have to modify the docker compose-file to fit your environment and needs.
eg flag
Solved with this: https://discourse.pi-hole.net/t/setup-on-pi-in-docker-bind-error/19137/7
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.