Understanding ECS task networking
Under the hood, ECS task networking is actually quite a complex feature that relies on a number of Docker networking features and requires a detailed understanding of Docker networking. As someone who designs, builds, and deploys container environments in AWS using ECS, the good news is that you don't have to understand this level of detail, and really you just need a high-level understanding of how ECS task networking works. I will therefore provide a high-level overview of how ECS task networking works in this section, however, if you are interested in how ECS task networking works in greater detail, this blog post from AWS (https://aws.amazon.com/blogs/compute/under-the-hood-task-networking-for-amazon-ecs/) provides further information.
Docker bridge networking
To understand ECS task networking, it helps to have a picture of how Docker networking and the standard configuration of an ECS container works by default. By default, ECS task definitions are configured...