title: ECS to Authenticate with Docker Hub
body: <p>I'm having issues authenticating with a private repo in docker hub from my AWS EC2 instance.</p>
  
  <p>AWS provides documentation on how to set this up. 
  <a href="http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/AmazonECS/latest/developerguide/private-auth.html</a></p>
  
  <p>I've followed the documentation and am still getting the following error:</p>
  
  <blockquote>
    <p>Error response from daemon: repository user/reponame not found: does
    not exist or no pull access</p>
  </blockquote>
  
  <p>I've created an ecs.config in the /etc/ecs directory</p>
  
  <p>my ecs.config (Note: I've removed my credentials) </p>
  
  <pre><code>ECS_ENGINE_AUTH_TYPE=docker ECS_ENGINE_AUTH_DATA={"https://index.docker.io/v1/":{"username":"username","password":"password","email":"fakeemail@gmail.com"}}
  </code></pre>
  
  <p>I then stopped and restarted ecs service. </p>
  
  <p>I still get </p>
  
  <blockquote>
    <p>Error response from daemon: repository user/reponame not found: does
    not exist or no pull access</p>
  </blockquote>
  
  <p><em>Note: I am able to log in manually using docker login from my linux ec2 instance, then pull from my private repo</em></p>