-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker pihole fails to come stating that port is already in use in Unraid #1657
Comments
Tried it again (with that setting removed, that I did not go in there and add myself :) ) and got: docker: Error response from daemon: driver failed programming external connectivity on endpoint pihole (9cefd1910ac733c68c4aea95d3d3a72de1a73f70bcb6de83d926cfa8a24ead66): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use. should that address be 0.0.0.0 or should it be the assigned ServerIP? |
No. When you use docker and publish ( Please read our README file. Note: |
will check further into tomorrow. seems funny because this was working for months then stopped. and i can't figure out what changed to make this happen. thank you for your guidance so far. |
This is not a Pi-hole issue, but an OS issue on the host. If Pi-hole was working before, but now it's failing, I guess your OS was updated and something was installed, reconfigured or enabled without you noticing. Hints:
|
So I have the answer. Somewhere in here I lost this very very important setting: this was set to 'bridge' before. so it was trying to use the ports on the original interface for unraid. but now that I have it bound to this custom interface with it's own IP it can bind to the ports that it needs. now I have pihole working again. :) |
This is a: Bug (maybe?)
Details
When I go to startup pihole in docker on Unraid, I get the following problem. It states that it can't bind to port 0.0.0.0:443, but shouldn't it be binding to 192.168.1.104 and not 0.0.0.0 ? Container fails to come up in bridged mode under Unraid.
docker: Error response from daemon: driver failed programming external connectivity on endpoint pihole (2517993e19f453e9bee8613d2ca9293a1841aab7b5cd755c8cf916d4f4877578): Error starting userland proxy: listen tcp4 0.0.0.0:443: bind: address already in use.
Related Issues
How to reproduce the issue
docker run
-d
--name='pihole'
--net='bridge'
-e TZ="America/New_York"
-e HOST_OS="Unraid"
-e HOST_HOSTNAME="Melchior"
-e HOST_CONTAINERNAME="pihole"
-e 'PIHOLE_DNS_'='1.1.1.1,8.8.8.8;8.8.4.4'
-e 'TZ'='America/New York'
-e 'WEBPASSWORD'='#########'
-e 'INTERFACE'='br0'
-e 'ServerIP'='192.168.1.104'
-e 'ServerIPv6'=''
-e 'IPv6'='False'
-e 'DNSMASQ_LISTENING'='all'
-e 'WEBUIBOXEDLAYOUT'='boxed'
-l net.unraid.docker.managed=dockerman
-l net.unraid.docker.webui='http://[IP]:[PORT:80]/admin'
-l net.unraid.docker.icon='https://i.imgur.com/OWkNcEn.png'
-p '53:53/tcp'
-p '53:53/udp'
-p '67:67/udp'
-p '80:80/tcp'
-p '443:443/tcp'
-v '/mnt/user/appdata/pihole/pihole/':'/etc/pihole/':'rw'
-v '/mnt/user/appdata/pihole/dnsmasq.d/':'/etc/dnsmasq.d/':'rw'
--cap-add=NET_ADMIN
--restart=unless-stopped 'pihole/pihole:latest'
These common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
The text was updated successfully, but these errors were encountered: