How to communicate between two across different bridge

I have created three docker bridges and have containers in different bridges but not able communicate / ping from one container to other container across their associated bridges .

docker network ls
NETWORK ID NAME DRIVER SCOPE
6e94b1e30d21 automatics_network bridge local
304665a127f8 bridge bridge local
488d6b7ac5dc device_manager_network bridge local
7857794d31b5 host host local
d77c10e81685 jenkins bridge local

we are not able to communicate among the above bridges

Has anybindy solution ?

TIA

For container to container communication, the containers need to be attached to at least one shared network. In case you don’t know how to create containers attached to multiple network, please share how you create the networks and the containers in a code block, so that we can adopt the configuration/commands for you.

There are two bridges which I want to make communicate with each other.(Automatics_Network & Device_Manager_Network).
Those brigdes contain below mentioned containers.

Automatics_Network

“Containers”: {
“7824f5f4db4c3087a8993534978097d0088222316f05047d5cf0a833a81ef849”: {
“Name”: “rack_data_service_9093”,
“EndpointID”: “697ce8138ef92b2674edc025425f5a538c1022153749f396dfa570018a57f9d5”,
“MacAddress”: “02:42:ac:13:00:04”,
“IPv4Address”: “172.19.0.4/16”,
“IPv6Address”: “”
},
“8cdd09259373e56a3d6f9f66d23ca97fb2d325906aea1a169419350a0b91ac2e”: {
“Name”: “automatics_orchestration_db_3307”,
“EndpointID”: “ac6c5ff06c1c3235a77c2edd8793ad108a053f91930240fe3ca23d5febda8348”,
“MacAddress”: “02:42:ac:13:00:02”,
“IPv4Address”: “172.19.0.2/16”,
“IPv6Address”: “”
},
“b66d1e8e3a181cf2a9a60520fff894607cc16b549302b6fa141c29068cca6cd8”: {
“Name”: “automatics_orchestration_tomcat_9091”,
“EndpointID”: “63d71cf0f5cc6e8b0788ac4f97672c0eb53780fdfba711528553feb6e954c835”,
“MacAddress”: “02:42:ac:13:00:03”,
“IPv4Address”: “172.19.0.3/16”,
“IPv6Address”: “”
}
},

Device_Manager_Network

“Containers”: {
“065d79b1ed9307e7987f1f16b861bd13250b66cfa41c781463e8a22cbf825d32”: {
“Name”: “device_manager_ui_tomcat_9096”,
“EndpointID”: “ef95fb94eca315220b47245f356759d038995ee06427c9a397dfb36688d96708”,
“MacAddress”: “02:42:ac:16:00:04”,
“IPv4Address”: “172.22.0.4/16”,
“IPv6Address”: “”
},
“8ad1464ac92246dab6d5a36c7ff99bc315f72e4087460a391d3f24f52aa61a6e”: {
“Name”: “device_manager_tomcat_9095”,
“EndpointID”: “7c8913cd10eec0e65da859f99c7735d1f4be0469e1b26d51258fa324abe11302”,
“MacAddress”: “02:42:ac:16:00:03”,
“IPv4Address”: “172.22.0.3/16”,
“IPv6Address”: “”
},
“f3dd895779486a432b9b131a8e43c529d0e69fa09cd1a83fb642f4e822569a9c”: {
“Name”: “device_manager_db_3308”,
“EndpointID”: “e27f29b3d3ef74a8cd7ec35eb5216143ad7812246038ad7e8250c863eb4d3025”,
“MacAddress”: “02:42:ac:16:00:02”,
“IPv4Address”: “172.22.0.2/16”,
“IPv6Address”: “”
}

we want the containers of these two bridges to communicate with each other.How can we do so

In docker you don’t connect bridges, you attach the containers to the docker bridge networks. Then leverage the dns-based service discovery by using the service or container name when connecting to the other container.

If you have no idea what I mean, then please share how you create your containers, by sharing either the docker run commands or the content of the docker-compose.yml.


Please, format your post according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.

Example code block:

```
echo "I am a code."
echo "An athletic one, and I wanna run."
```

After fixing your post, please send a new comment so people are notified about the fixed content.