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.

All Docker questions Roadmap: Docker & containers

More on Networking