Skip to content
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

via remote driver creates one network: admin, start a container with network admin, but got two IP, one is from admin, other is from a bridge which is automatically created #797

Closed
yangzhares opened this issue Dec 3, 2015 · 2 comments

Comments

@yangzhares
Copy link

as title, i create a network: admin via remote driver, and start a container(docker run --rm -ti --net=admin busybox sh) with network admin, but got two IP, one is from admin, other is from a bridge which is automatically created by system. in fact, i want to get only one IP which should be from admin, how can avoid this?

~ # ifconfig
eth0 Link encap:Ethernet HWaddr FA:16:3E:A7:D6:70
inet addr:10.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::f816:3eff:fea7:d670/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1038 (1.0 KiB) TX bytes:858 (858.0 B)

eth1 Link encap:Ethernet HWaddr 02:42:AC:12:00:02
inet addr:172.18.0.2 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::42:acff:fe12:2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1170 (1.1 KiB) TX bytes:648 (648.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

@chenchun
Copy link
Contributor

chenchun commented Dec 3, 2015

Libnetwork is about to providing an DisableGatewayService option in JoinResponse to disable default gateway bridge network, you can take a look at #778

@yangzhares
Copy link
Author

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants