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
[feature request]a specific option of "bridge" network driver to attach the user-defined bridge network to a network interface on Docker host #1003
Comments
hi @mavenugo ,thanks |
Related: Using external bridge to phyical NIC breaks the default |
So this proposal provides containers in this network to get to use IPs provided by the dns on the bridge and get external connectivity via bridge. This avoids NAT... Am i right? |
hi @sainath14 , this proposal is to attach the bridge create by "docker network create" to a specified network interface and the bridge will inherit the network configuration of the network interface. so that the containers connected with the docker network object will get external connectivity via the bridge. on "This avoids NAT." , can you explain a bit? |
@immarvin: @sainath14 means that when using the On the other hand, when using a custom bridge on which you connect a NIC, containers are visible just like independent devices, such as virtual machines or physical ones. |
any update on this? |
hi @mavenugo ,thanks |
Has this feature been added to docker? Either through docker network create or through docker-compose.yml file? Preferably, would be nice to be able to add something like the following to my docker-compose.yml:
|
Is this still being worked on? I'm using an application that relies on broadcasting, currently this is an all-or-nothing problem because I have to either set What I want to do is I think there are some people creating br0 with docker and then attaching eno1, but since that's my servers primary connection I'd like to avoid that. |
I have a simuler problem, need "cloned" services with broadcasting on existing bridge. |
I've solved my problem by creating a docker network for my existing bridge:
Afterwards you can run containers directly in this network (drop
|
Thanks. This will solve my problem. Still would like to se veth feature so docker can draw dhcp from an external source thus avoiding collision. |
+1 for implementing this feature 👍 |
+2 |
+1 |
Qnap implemented it quite nicely with the qnet driver. https://qnap-dev.github.io/container-station-api/qnet.html#docker-compose |
request description:
To create a bridge network attached to a network interface on docker host, I have to try the following 3 steps
is it possible to finish the 3 steps above in 1 "docker network" command? is there any option to achieve this?
Describe the results you expected
create a user defined bridge network and attach it to a network interface on docker host with one "docker network create"
Background
I am trying to dockerize my project and encourage users to use run my service inside docker container instead of traditional installation way, I have finished the docker image build and draft a documentation(http://10.3.5.21/doc/advanced/docker/run_xcat_in_docker.html) to run it in docker, I encountered some problem while trying to start container with docker compose instead of following the doc step-by-step, since I can not include the following 2,3,4 steps in the docker-compose.yml:
thanks
The text was updated successfully, but these errors were encountered: