Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
How to control the IP subnet used by docker_gwbridge #19298
I looked in the documentation and set up a testbed to try and understand how the
I have my container on the overlay network with two interfaces, one private, one public.
Is there some option that I can pass to the docker daemon to tell it which IP subnet it should use for the
If I create by hand a
I understand that I am supposed to use port forwarding, but let's say I have lots of "public" IP addresses and I don't want to pay the NAT performance penalty. What can I do?
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
For more information about reporting issues, see CONTRIBUTING.md.
You don't have to include this information if this is a feature request
(This is an automated, informational response)
BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
Yes It will be picked up. But, please note that we take special precautions to this network when we create this network to be used for overlay network. docker_gwbridge network is shared across all the containers running across multiple overlay networks. Because of that, we configure ICC=false in the docker_gwbridge in order to prevent the containers connected to the docker_gwbridge to communicate with each other via this network. PTAL : https://github.com/docker/libnetwork/blob/master/default_gateway_linux.go#L15
If you have to create it manually it will be
But please note that, though this will work in the current overlay driver implementation, there is no guarantee that we will continue to use
referenced this issue
May 14, 2016
just a tiny fix, it should be --opt
Additionally one can define
A question: will this network always persist on docker restarts? Can one save this somehow in docker daemon options?