title: Error response from daemon: Get https://xxxxxxxxx.dkr.ecr.us-east-2.amazonaws.com/v2/xxxx/manifests/v_50: no basic auth credentials
body: <p>I'm trying to implement CD/CI workflow with jenkins-docker-aws. I'm in the point of having the job properly configured but I'm getting an error at deployment time in ec2.</p>
  
  <p>I face in AWS the following error: </p>
  
  <blockquote>
    <p>Status reason  CannotPullContainerError: API error (404): repository xxxxxxxxx.dkr.ecr.us-east-2.amazonaws.com/xxxxxxxxx not found</p>
  </blockquote>
  
  <p>My repository exists in AWS ECR. So, debugging and trying to pull the image that is in the Repository, I've executed the following commands to confirm everything is fine: </p>
  
  <p>1.- Getting Logging succeeded by executing the output of:</p>
  
  <blockquote>
    <p>aws ecr get-login --no-include-email</p>
  </blockquote>
  
  <p>2.- Checked my ~/.docker/config.json it shows, firstly it showed registry URL without protocol, but after reading some recomendations pointed to add it:</p>
  
  <p><code>{
          "auths": {
                  "https://xxxxxxxx.dkr.ecr.us-west-1.amazonaws.com": {
                          "auth": "long key..."
                  }
          },
          "HttpHeaders": {
                  "User-Agent": "Docker-Client/17.12.1-ce (linux)"
          }
  }</code></p>
  
  <p>So, after these checks and execute the pull command, I'm still getting...</p>
  
  <blockquote>
    <p>[ec2-user@ip-xxxxxx .docker]$ docker pull xxxxxxxxx.dkr.ecr.us-east-2.amazonaws.com/xxxxxxxxx:v_50</p>
    
    <p>Error response from daemon: Get <a href="https://xxxxxxxxx.dkr.ecr.us-east-2.amazonaws.com/v2/davidtest/manifests/v_50" rel="noreferrer">https://xxxxxxxxx.dkr.ecr.us-east-2.amazonaws.com/v2/davidtest/manifests/v_50</a>: no basic auth credentials</p>
  </blockquote>