When a container is connected to multiple networks, its external connectivity is provided via the first non-internal network, in lexical order.

Sources

  1. github.com
  2. docs.docker.com