What are the container-to-container communication rules between networks?
BeginnerConceptNetworking
Answer
Containers on different user-defined networks cannot communicate unless one is attached to both. Docker enforces this with iptables isolation chains (DOCKER-ISOLATION-STAGE-1/2). Default bridge containers can all reach each other unless icc=false is set.
More on Networking
What network drivers does Docker have?BeginnerHow does the default bridge network work?AdvancedDefault bridge vs user-defined bridge: what is the difference?IntermediateHow does container DNS work?IntermediateHow does `-p 8080:80` work under the hood?AdvancedWhat is the difference between `-p 80:80` and `-p 127.0.0.1:80:80`?Beginner