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?