Add new flag to completely disable service discovery#17375
Add new flag to completely disable service discovery#17375aidanhs wants to merge 1 commit intomoby:masterfrom
Conversation
Signed-off-by: Aidan Hobson Sayers <[email protected]>
|
A mention of a quote by @icecrime #17190 (comment)
I agree with the above, but unfortunately the current solution is "break the current expectation" which I don't think is a good solution. |
|
I'm also considering just implementing 3 (i.e. being able to enable/disable service discovery on a network level), which seems like a better approach if this PR has no chance of ending up in 1.9.0. |
|
This would be really great to have! |
|
@aidanhs seems like it didn't get to 1.9. Do you want to close it and open another PR? |
|
I'm pursuing this via moby/libnetwork#722, which will (eventually) allow you to modify settings of networks, specifically enabling and disabling service discovery. This will probably take a while given it needs to go PR -> review -> libnetwork merge -> docker libnetwork update, but it's the best option I can see for now. |
This is an alternative approach to #17325.
The problem is the tension between:
3 and 4 are not relevant in this discussion since they're not available yet.
#17325 resolved the issue with corruption (#17190) by disabling discovery on the default network. This doesn't really help if you want to use networks.
This is a blunter (granularity on the daemon level), yet more configurable (it's not hardcoded) approach. I would expect this to, in time, be extended with granularity on the network level and granularity on the container level.
It
@mavenugo @thaJeztah (not sure who else is interested)
(there will be test failures, I want feedback on design and whether this has hope in any incarnation of being merged)