Closed bySabi closed 10 years ago
Ok is seen that I have to add br0
bridge first to /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.32
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
dns-nameservers 192.168.0.254
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
# bridge
auto br0
iface br0 inet static
address 192.168.0.32
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
dns-nameservers 192.168.0.254
bridge_ports eth0
bridge_stp off
bridge_fd 0
bridge_maxwait 0
is working with, little obvious :) ...
$ pipework br0 7187a6f56000 192.168.1.1/24
$ pipework br0 62bb18c85858 192.168.1.2/24
it´s expect behaviour, add br0 manually?
Yes, that's expected. By default, the network will be purely private between the containers. If you want to be able to ping the containers from the Docker host, you have to give the Docker host an IP address on that network, as explained here: https://github.com/jpetazzo/pipework#peeking-inside-the-private-network
Let me know if the explanation needs to be improved!
1- First I start container#1
2- then container#2
**\ Containers based on image: stackbrew/ubuntu:13.10
3- On host terminal run:
4- Interfaces & route setting inside containers:
container#1
container#2
host interfaces
Then:
I can ping each containers on subnet: 172.17.0.0
I can´t not ping containers on subnet: 192.168.1.0