Problem with pihole instance on a Ubuntu Server that runs Portainer

**The issue I am facing: **
I am trying to deploy more containers (Nextcloud, nginx and such), but Pihole seems to “steal ports”, so that I cannot deploy anything besides (or when the deployment goes through, such as Nextcloud instance - Pihole “steals” the port, and insted of connecting me to a Nextcloud container, the piholes site loads up)
Also it seems, that pihole blocks the querries from outside the network. That’s an issue, cause I am not able to connect to my server from outside.

Details about my system:
Mini PC, with the latest Ubuntu Server on it. Also Docker, Portainer and others (non-relevant)

**What I have changed since installing Pi-hole: **
The only way that Pihole works on my server is when I deploy it in a “host” mode. In my opinion that part breaks it all, but I am not so sure now.

Your issue is you are trying to use the same port for more than one container.

Apparently you need to understand how docker works.
A container doesn't "steal" ports. It uses the ports defined by you (on your docker run command or on the Compose file).

The same conflict will happen if you use the same ports to run Nextcloud and nginx containers at the same time (even without Pi-hole container).

If you want to run more than one container running a web server you need to use different ports for each container.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.