I have Linux Debian PC with two Network interfaces: X1 & X2
Port X1 has IP : 126.96.36.199
Port X2 has IP : 172.17.0.111
I Created a bridge network to have its own network for conatainers using following command in this Debian linux PC
docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 mynet
Then i create container instances using following command
docker run --name container1 --rm -it -d --net=mynet mydockerimg
a container get created with IP 192.168.0.2 and broadcasts some data over port 4840
I am able to ping “192.168.0.2” from X1 sucessfully.
but a ping “192.168.0.2” from X2 fails, what could be the reason ?