title: Restart a single exited container in an ECS task
body: <p>I have a container that is part of an ECS task definition, which I have marked as <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_healthcheck" rel="noreferrer"><code>essential=false</code></a>, because if this container goes down, I do not want the ECS agent to take down the other containers in the task. Making the container "non-essential" has achieved the desired result in my case: that container crashes, and the other containers on the task do not get taken down or restarted. </p>
  
  <p>However, I do want this non-essential container to be independently restarted. Is there any built-in way to accomplish this? Basically, if the container exits, run <code>docker start</code> or <code>docker restart</code> on that container (which we are currently having to do manually). I have not had any luck so far with the documentation or from exploring the AWS console. </p>