Azure-docs: Need clarity on Docker Bridge Address

Created on 28 Dec 2018  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

Not able to find enough documentation on this (docker networing / docker's bridge address space) in connection with how it works with Kubernetes. What if 172.17.0.1/16 is conflicting with one of our internal network ip address space? can I still use the same address space without causing issues? As per K8s documentation containers share the same IP address of Pod but have to negotiate ports within the pods, given that can I assume that no matter what range you give for docker bridge address space, it will not cause any issues because Pods in AKS gets its IP from the subnet itself?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

assigned-to-author container-servicsvc doc-enhancement triaged

Most helpful comment

In the current documentation it's still not clear to me:

  • does that IP have to be part of a /16 range?
  • if I have two AKS clusters in two peered Vnets, can I use the same Docker Bridge address for both?
    thanks

All 9 comments

Thanks for the question. We are currently investigating and will update you shortly.

@badalk I found a similar issue here. Please take a look and let me know if that answers your question.
Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.
@iainfoulds Can you please take a look and see if we can incorporate more information in the doc. Thanks. :)

@Karishma-Tiwari-MSFT I had seen that thread, but it explains about kubernetes service address space but not docker bridge address space.

Docker bridge is for the host and control plane communication. It doesn't define addresses that the pods themselves would receive. You're welcome to use an alternate IP subnet for the Docker bridge, what's noted is just an example. If the subnet is already in use, it would still conflict in terms of that host communication plane, so it would need to unique within your network space.

I've created a backlog work item to add a sentence or two explaining the use of the Docker bridge address range. For now, @Karishma-Tiwari-MSFT #please-close

Thanks @iainfoulds
@badalk Thanks for bringing this to our attention. We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

Thanks @iainfoulds

In the current documentation it's still not clear to me:

  • does that IP have to be part of a /16 range?
  • if I have two AKS clusters in two peered Vnets, can I use the same Docker Bridge address for both?
    thanks

@iainfoulds : I'm working on building a new AKS cluster and we don't have many spaces for our IP range. Can you :

  • Be more precise about why Docker Bridge need so many IP to work ? For me, I undertanstood that it's just for routing data and make communication easier between pods and nodes so it doesn't make sense to give it a full /16...
  • Is a /29 range is enough for an AKS ? Some people said is not enough...

Thank you for the reply!

is the docker bridge cidr is for per node or for the entire cluster?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

AronT-TLV picture AronT-TLV  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

Favna picture Favna  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments