I have multiple containers(total 6) running on network net1 and only 1 container which runs with –net host flag.
One of the multiple containers is ‘RestAPI container’… and the one which runs with –net host is ‘Protocol Container’
When I start the containers for the first time with fresh environment (removing all volumes… and containers) I am able to ping the Protocol container from RestAPI container. When I restart the host machine(Ubuntu 20.04) I observe that the RestAPI container is able to ping other containers in its n/w but not able to ping the Protocol container.
I don’t use docker compose I have written a shell script to run the containers.
OS: Ubuntu 20.04
Docker Version: 20.10.22