title: docker login: error storing credentials `The stub received bad data.`
body: <p>First, I installed AWS-CLI and I already used "AWS configure" to set up my secret key and I also used "Docker login" command to log in and I got success and when I typed Get-ECRLoginCommand. It works and returns the result for me.</p>
  
  <p>But when I try to use the command :</p>
  
  <pre><code>(Get-ECRLoginCommand).Password | docker login --username AWS --password-stdin 837859123533.dkr.ecr.ap-east-1.amazonaws.com/spring-boot
  </code></pre>
  
  <p>I got an error that looks like this:</p>
  
  <blockquote>
    <p>Error saving credentials: error storing credentials - err: exit status 1, out: <code>error storing credentials - err: exit status 1, out:</code>The stub received bad data.``</p>
  </blockquote>