-
-
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
Lighttpd doesn't start on fresh container with --net=host #432
Comments
I had the same issue, had to set the ServerIP environment variable. |
Hi, thank you @etrombly! This solved my problem. Given the README states "ServerIP no longer a required enviroment variable", I assume this is a bug so I think this issue should stay open. |
Clarified in the readme a little bit but it could have a little more clarity and examples could be updated and automation in startup to detect "IS host network AND NOT ServerIP THEN Add warning" would be the best. |
@diginc Why not get the server IP automatically in the container if the env variable is not set? You can do this easily without any extra dependencies. awk '/32 host/ { print f } {f=$2}' /proc/net/fib_trie | head -n 1 |
Definitely add more info in the docs about this :) it took a while to find this issue.. |
Same issue. My setup was with docker -> portainer -> pihole and it just never told me why I don't get a bind. Thanks, this should be easier to find, took a day. |
This issue has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-mit-hue-sonos-iobroker-und-alexa/31042/11 |
Has this been resolved? I was running a sample as follows and i am getting the issue. I was thinking that the network wasnt assigning the container the IP address? Raspberry Pi 4 on network with Docker and docker Compose, i would run the following file information with
So what I was thinking the container was not being assigned the IP Address correctly? I was thinking that if i set the network_mode, I didnt need to expose IP addresses since it is being its own container and not being exposed through the host machine any longer? |
Host mode means the container is the host. So the IP address of the host is the IP address of the container. |
@dschaper I thought that network mode host meant it was attached to the Host's Network as its own standalone endpoint? Maybe I am mistaken? I was having it work earlier by having all references to HOST machine, but i didnt want to chew up ports etc, and thought it better to make my pihole container sit on the network as its own entity. https://docs.docker.com/network/host/ |
https://docs.docker.com/network/host/
|
If you want it as it's own IP address then you'll need to look at |
@dschaper ahhh yeah, i reread it again, but slower. ill take a look into macvlan. Is this something simple to do with this usecase? I didnt see documentation regarding it. |
It's the networking mode that a lot of Pi-hole users choose. There is the caveat that it makes the container unreachable by the host (directly) as it's seen as a foreign network and host but there are workarounds for that. A web search for |
@dschaper I ended up doing the following. Thank you. Here is what I ended up doing:
|
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
nope |
This issue has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pihole-nicht-erreichbar-wenn-network-mode-angegeben-docker/52783/1 |
Hiya,
This is a...
Description
I have been trying to use docker-compose to launch a container, and it gets stuck in a loop of trying and failing to bind Lighttpd. Here is my config yaml file:
I also tried changing WEB_PORT to 1080, the port variable is being pulled through but the same error loop massage appears:
Nothing is running on these ports on the host, as confirmed by netstat:
Debug steps I have tried
docker run
example in the readme (removing any customizations I added) - this works correctly, even with --net=hostYour Environment
The text was updated successfully, but these errors were encountered: