title: docker login with non interactive session returns 401
body: <p>I have a really strange issue with the non interactive docker login command. I am trying to login to my docker repository using the following command: </p>
  
  <pre><code>docker login -u emi -p 123 my.dockerrepo.com:5000
  </code></pre>
  
  <p>This command returns the following error: </p>
  
  <pre><code>Error response from daemon: login attempt to https://my.dockerrepo.com:5000/v2/ failed with status: 401 Unauthorized
  </code></pre>
  
  <p>However, if I run the above command without -p and enter the same password in the shell it works perfectly. </p>