Amazon ECS provides the ability to restart containers without requiring a task relaunch

Amazon Elastic Container Services (Amazon ECS) now improves container resiliency by giving you the ability to define a flexible container restart policy for restarting individual containers locally, without requiring a full task relaunch. With local container restarts, Amazon ECS can recover your containers from unexpected failures within a few seconds, enhancing your overall task stability by avoiding unnecessary task relaunches.

Amazon ECS now provides automated container restarts in-place to recover your containers from transient failures such as network disruption or cases where your containers stop unexpectedly. For containers for which you want to have some fault tolerance where a restart can clear an indeterminate condition, like data loggers, collectors or forwarders, you can create a policy to restart on error codes and recover much faster than you would if you were to relaunch the whole task, including any mission critical or customer facing applications.

The new experience is now enabled in all AWS Regions. To learn more about how to set up your Amazon ECS container restart policy parameters, see the Amazon ECS Developer Guide.
 

Source:: Amazon AWS