Allow tag com.dnsdock.prefix to select which of a container's IPs is used#77
Allow tag com.dnsdock.prefix to select which of a container's IPs is used#77MelanieT wants to merge 1 commit intoaacebedo:masterfrom
Conversation
MelanieT
commented
Nov 3, 2016
added For containers that are both on a private, internal network and a bridge network, dnsdock often chooses the address of the internal network which is not accessible from the host. Setting the prefix to the address prefix the bridge network uses allows to prevent this. Usage: -l com.dnsdock.prefix=172.17.0.
|
Hi ! |
|
The two are orthogonal. Your ip_addr label, of which I am aware, can only be used to assign a fixed address as an override. For that, the IP address needs to be known before starting the container. |
|
Ok I understand the difference |
|
Well, personally I believe prefix is the right name to use because the term is used in networking everywhere to denote a partial IP address beginning at the front. People would recognize prefix as what it is, while selector isn't used in networking at all and filter would only be appropriate if there were a possibility to use rules, like regex, and the result could be more than one IP, I know it's semantics but I believe that usability is improved when using a term people know as opposed to one they never heard in that context. The most clear would be "network_prefix", actually. I believe the way it is coded now already does give ip_address priority because it is applied later in the flow. |
|
Your arguments about prefix are solid, I kept the name as it is. |
|
I've read through the resulting code and I have a suggestion to make: |
|
Goog point. |
1 similar comment
|
Goog point. |