title: Amazon ECS error: cannot create a task definition with no containers
body: <p>I have been following a tutorial regarding using docker compose with the AWS ECS service located <a href="https://medium.com/@Electricste/amazon-ecs-using-the-cli-with-docker-compose-74287f19b181" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I am using Ubuntu 16.04 and the installation of the ecs-cli was successful.
  However, I have been receiving the following error when I try to run <code>sudo ecs-cli compose up</code> in the directory containing the docker-compose.yml file</p>
  
  <blockquote>
    <p>ERRO[0000] Unable to open ECS Compose Project            error="cannot create a task definition with no containers; invalid service config"</p>
    
    <p>FATA[0000] Unable to create and read ECS Compose Project 
    error="cannot create a task definition with no containers; invalid
    service config"</p>
  </blockquote>
  
  <p>How are docker-compose.yml files and by extension multi-container docker applications supposed to be used with AWS ECS?</p>