mifronte Posted January 23, 2018 Share Posted January 23, 2018 With unRAID 6.4, containers now can be assigned their own IP. Is it possible for the container to get the IP from DHCP instead of statically assigned? Quote Link to comment
bonienl Posted January 23, 2018 Share Posted January 23, 2018 Yes, dynamic assignment is possible. You'll need to configure an address range used by the DHCP service of Docker itself. Go to Docker Settings, stop the Docker service and enable advanced view. Select a range which does not conflict with the DHCP service of your router as Docker is unaware of any other DHCP service. Quote Link to comment
mifronte Posted January 23, 2018 Author Share Posted January 23, 2018 Thanks bonienl. You kind of indirectly answered my question. I was hoping to use my main DHCP service and not have to run a separate DHCP service for Docker. I guess I will just statically assign the IP. Quote Link to comment
Psylosophius Posted March 5, 2022 Share Posted March 5, 2022 Das würde mich auch interessieren. Es Wäre wirklich klasse, wenn der Router den Dockern die Adressen zuweisen könnte. Quote Link to comment
Ford Prefect Posted March 5, 2022 Share Posted March 5, 2022 @bonienl...any chance to get this thing installed, and up and running in unraid: https://github.com/devplayer0/docker-net-dhcp ?? Looks like this could solve the issues for many Users who do want a single dhcp-management solution, aka their router. Quote Link to comment
bonienl Posted March 5, 2022 Share Posted March 5, 2022 Please make a feature request, so it stays visible for potential future enhancements. 1 Quote Link to comment
devnet Posted March 6, 2022 Share Posted March 6, 2022 (edited) Had the same issue here: I'd definitely get behind a solution on this as well. Previously, ASUS router was able to see Docker IP's running on macvlan with no issues on vanilla Debian. Side note: some of my containers actually register their DHCP address with my DHCP service external to Unraid...but only 3 containers total. The rest follow the behavior above of not registering with external DHCP. The containers that work are PiHole DOT-DOH, Whoogle, and The Lounge. Not sure why those are different than any other container...but they registered with my external DHCP service and I was able to reserve a permanent lease for them. Edited March 6, 2022 by devnet Quote Link to comment
Ford Prefect Posted March 7, 2022 Share Posted March 7, 2022 On 3/6/2022 at 5:00 AM, devnet said: I'd definitely get behind a solution on this as well. ...then make yourself heard in the feature request above, so it doesn't go unnoticed On 3/6/2022 at 5:00 AM, devnet said: Previously, ASUS router was able to see Docker IP's running on macvlan with no issues on vanilla Debian. It is different, whether these routers did actually hand out an IP by dhcp-request or simply track outbound internet traffic going through it, as a gateway. Many SoHo routers just do the 2nd thing, which is of course convenient to the user, as it creates a list of all hosts (as every host will connect to the internet eventually). On 3/6/2022 at 5:00 AM, devnet said: Side note: some of my containers actually register their DHCP address with my DHCP service external to Unraid...but only 3 containers total. The rest follow the behavior above of not registering with external DHCP. Reason for that is, that the "standard" for a Docker is just a container of a single App inside, hence the maintainer does not care to embed (and run) a dhcp-client inside (which will make acquiring an IP from an external dhcp server work, when using macvlans). But a few actually do host and run a dhcp-client, as you noticed. 1 Quote Link to comment
mrpops2ko Posted August 13, 2022 Share Posted August 13, 2022 ah very disappointing to learn its not possible to do this natively, i also would have loved to have my own external router handle all the DHCP requests and not do a half-way house of multiple non-aware DHCP servers. I'm still very likely to purchase at the end of the month but this would definitely help towards tipping my over the edge Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.