title: Running multiple docker instances in EC2
body: <p>I am new to AWS. So please bear with me if my question doesn't make sense.</p>
  
  <p>My goal is to run multiple docker containers(with different docker config) in one AWS EC2 instance.
  So far I have been able to programatically start and stop EC2 instance using java SDK.</p>
  
  <p>I guess for running docker instances in EC2 I will have to use ECS Api(AmazonECSClient - included in AWS java SDK).
  Unfortunately there are hardly any examples that I am able to find for this using AWS java SDK.</p>
  
  <p>Does anybody know how to accomplish this? Any pointers would be helpful.</p>