title: Pushing a tag to private docker registry in artifactory fails from mac
body: <p>So, we have permissions setup on who can push to the docker registry in artifactory. Now, I created a dockercfg file in $HOME/.dockercfg on my mac and added the username and passing using the curl command:</p>
  
  <pre><code>curl -uaaaaa:bbbbbbb "https://docker.io/v2/auth" &gt;&gt; $HOME/.dockercfg
  </code></pre>
  
  <p>After that when I try to push an image to docker registry, it fails with the below error: </p>
  
  <pre><code>unauthorized: The client does not have permission to push to the repository.
  </code></pre>
  
  <p>When I look at the docker request.log in the registry, I see its trying to push as anonymous from my mac. This is very confusing. Even though I have the $HOME/.dockercfg which has a user.</p>
  
  <p>I also tried the docker login docker.io way but that too isnt helping. </p>
  
  <p>It seems that the artifactory docker registry isnt able to find the user info when I am pushing from my mac and shows as <strong>anonymous</strong>. </p>
  
  <p>My artifactory server version is 4.5.0 and docker 1.12.0-rc2. </p>
  
  <p>Can anybody please help. </p>