Containers provide a portable, flexible way to deploy applications. Amazon EC2 Container Service (ECS) makes it easy to run and manage containers across a cluster of Amazon EC2 instances. With ECS, users define tasks that specify containers, resources, and dependencies. Services are used for long-running applications and provide load balancing, scaling, and recovery of unhealthy containers. ECS handles scheduling tasks across the cluster and replacing containers as needed.