Task networking with the bridge network mode - Amazon Elastic Container Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

Task networking with the bridge network mode

Amazon ECS tasks that use the bridge network mode use Docker's built-in virtual network, which runs inside each container. The bridge is an internal network namespace that allows each container that's connected to the same bridge network to communicate with each other. It also provides an isolation boundary from containers that aren't connected to the same bridge network.

With the bridge network mode, you use static or dynamic port mappings to map ports in the container with ports on the Amazon EC2 host. For more information, see Choosing a network mode in the Amazon ECS Best Practices Guide.