Posted On: Aug 15, 2016
Amazon EC2 Container Service (ECS) now supports two additional Docker features: networking modes and memory reservation.
Docker networks provide isolation for your containers. It is important to have control over the networks your applications run on. With Amazon ECS, you can now specify an optional networking mode for your containers that cater towards different use cases:
- Bridge. This is the default option and it works by “bridging" from a container's internal network into a common Docker network.
- Host. With this option, containers are directly mapped into the host network.
- None. This option disables external networking for a container.
Memory reservation provides a soft-limit feature and does not guarantee the limit won’t be exceeded. Instead, the feature attempts to ensure that, when memory is heavily contended for, memory is allocated based on the reservation configuration. This feature allows you to specify a memory soft limit that is only enforced when free memory is unavailable.
You can read more about these features in the Task Definition Parameters section in the Amazon ECS Developer Guide. Please visit our product page for more information about Amazon EC2 Container Service.