title: How to deploy a Docker container on EC2 ECS from Docker Hub private repo?
body: <p>I have an image in a private Docker Hub repository, which I'm trying to deploy on Amazon's Elastic Container Service.  There seems to be nice web console to run a container from a public repository, but nothing for private.  I've read and tried to understand the <a href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html" rel="nofollow">documentation for this</a>, but I don't understand what that has to do with deploying my container, as it states "The Amazon ECS container agent allows container instances to connect to your cluster".</p>
  
  <p>As an alternative to using the web console, I see mentions of setting up a task definition.  It sounds like that's the manual version of what the web console does.  I suspect my best bet is with this method, possibly with the help of the script here.</p>
  
  <p>What is the simplest way for me to run an existing image on ECS that's hosted in a private repository?</p>