In backend of all docker networking:
- When the daemon instantiates the container, it assigns a unique network address to it, connecting it to a virtual Ethernet bridge, which in the case of Docker is called docker0.
- All containers in the system communicate with each other by directing packets to docker0, which then forwards those packets through the subnet automatically.