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
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.
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.