Understand container communication (Engine)
Understand container communication
The information in this section explains container communication within the Docker default bridge. This is a bridge
network named bridge
created automatically when you install Docker.
Note: The Docker networks feature allows you to create user-defined networks in addition to the default bridge network.
Communicating to the outside world
Whether a container can talk to the world is governed by two factors. The first factor is whether the host machine is forwarding its IP packets. The second is whether the host’s iptables
allow this particular connection.
IP packet forwarding is governed by the ip_forward
system parameter. Packets can only pass between containers if this parameter is 1登录查看完整内容