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
Could docker network configure the IPAM with already configured bridge addressing ? #20349
Comments
I believe this is relevant to #20123 |
AFAIK @Blazedd this is unrelated to #20123 @thomas-maurice regarding your question, custom network doesn't provide the |
@mavenugo yes but that is the "issue" I am pointing out. If I need to specify somehow the bridge I want docker to use, it is because I need a custom one, and probably I need one because I have a custom network configuration attached to it, that I want to manage and have full control over it. So would it be possible to implement a Also this issue could be retagged "feature request" couldn't it ? Regards :) |
I think its useful because OS networking is configured before docker daemon starts. At that earlier time docker daemon isnt running yet and we cant run some cmds like |
@thomas-maurice @dreamcat4 There are a few complexities with such a requirement. Especially with IPAM. As per the design, IPAM is managed independently of the network driver. So, if the user wishes the Other than that, I dont see any other issue with using the @aboch wdyt ? |
Yes indeed. They dicover the behaviour those |
@dreamcat4 sure. and hence my response :
|
@thomas-maurice I have the exact same requirement. Have you got anywhere with this? @mavenugo the problem with using com.docker.network.bridge.name=none is that the container won't have any means to reach the network, as the network doesn't have a device. I would expect com.docker.network.bridge.name to have the same behaviour as the -b, which it doesn't, and leaves no other options to this use case. Theoretically speaking, that is, I haven't tried but I'm pretty sure the above would create a bridge called "none". A decent alternative would be to allow to specify a static IP address for pre-defined networks, as I commented on #19001 , making use of the -b daemon switch. |
@gedl nope. I ended up not using docker networks at all and doing my own networking cooking at the OS level |
@thomas-maurice I am almost tempted to just remove the "if" that prevents users from specifying an IP in a pre-defined network. My opinion is this restriction is intrusive and useless. Docker can't prevent every user-induced mess up, specially not without reducing functionality and options, like this is the case. I still have some hope @aboch will reconsider and lobby to remove the restriction (that's definitely easier than allowing a -b switch on network creation). |
@thomas-maurice were you at least able to delete the intruding default bridge network? even specifying -b=none is still creating me a useless default bridge network, occupying a range of IPs. It does not create the bridge device, but prevents me to use that range of IPs in my own networks. |
Well I used the default bridge with address I forcedly assign, and then built my own networking stack on the top of it. |
I just assigned a /30 range (the smaller it accepts). So annoying having to I managed to delete the default network once, in another installation, but Gonçalo Luiz On 20 May 2016 at 06:53, Thomas Maurice notifications@github.com wrote:
|
@thomas-maurice
@mountkin 's change at moby/libnetwork#1301 provides the above and will be available in docker 1.13 |
Hello !
TL;DR:
When I create a docker network with a bridge that is already configured, Docker overrides the addressing I've set up. Could it be possible that when I create a docker network with an already configured bridge, if I do not supply any additionnal parameters, it configures the IPAM with the in place bridge configuration ?
More details
What I have :
Then I create my network
The bridge addressing went from
172.18.4.0/24
to172.19.0.0/16
. Could it be relevant to use already in place configuration ?Also, side remark, could the bridge not be deleted if it has not been created with Docker networks ?
Thanks a lot !
The text was updated successfully, but these errors were encountered: