Docker creates two bridges within the host. Why the containers in the two bridges cannot ping each other. How to set up so that they can ping each other?

each container is added to only one bridge.
the system uses the default action for ubuntu16.04, and has no special settings.

Mar.23,2022

No one answered the question and was trampled on.

answer yourself:
docker will write rules in iptables. Restrict the mutual access of containers under different bridges. Just delete this restriction.


originally, the original purpose of setting iptable in docker is to isolate containers, and you have to let them ping orz

.

if you want them to communicate, you might as well join a net namespace when you create it

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3fbeb-ea0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3fbeb-ea0a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?