Docker Community Forums

Share and learn in the Docker community.

Accessing container running on bridge network from secondary port of host PC

I have Linux Debian PC with two Network interfaces: X1 & X2

Port X1 has IP :

Port X2 has IP :

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 --gateway 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 and broadcasts some data over port 4840

I am able to ping “” from X1 sucessfully.

but a ping “” from X2 fails, what could be the reason ?