title: docker login on private nexus => Error response from daemon: login attempt to http://ip:port/v2/ failed with status: 404 Not Found
body: <p>I try to push a docker image to my private Nexus 3 registry.</p>
  
  <p>Before to push, i try to authenticate doing : <code>docker login nexus_host:nexus_port</code></p>
  
  <p>But i got the following error message : </p>
  
  <blockquote>
    <p>Error response from daemon: login attempt to http://<em>nexus_host</em>:<em>nexus_port</em>/v2/ failed
    with status: 404 Not Found</p>
  </blockquote>
  
  <p>My Nexus use HTTP, so add it in docker insecure registries list. </p>
  
  <ul>
  <li>Nexus version : Nexus Repository Manager OSS 3.9.0-01 </li>
  <li>Docker version : 17.09.1-ce (Windows 10)</li>
  </ul>
  
  <p>EDIT (08/03/2018) :</p>
  
  <p>I use a hosted docker repository. Should i use a HTTP connector ?  </p>
  
  <p><strong>Repo Configuration :</strong><br>
  Format : docker<br>
  Type : hosted<br>
  URL : <a href="http://192.168.0.90:8082/repository/docker-repo/" rel="noreferrer">http://192.168.0.90:8082/repository/docker-repo/</a><br>
  HTTP connector port : 1111  </p>
  
  <p><strong>Login attempts :</strong></p>
  
  <p><code>docker login 192.168.0.90:8082</code>
  => Error response from daemon: login attempt to <a href="http://192.168.0.90:8082/v2/" rel="noreferrer">http://192.168.0.90:8082/v2/</a> failed with status: 404 Not Found</p>
  
  <p><code>docker login 192.168.0.90:1111</code>
  => Error response from daemon: Get <a href="https://192.168.0.90:1111/v2/" rel="noreferrer">https://192.168.0.90:1111/v2/</a>: dial tcp 192.168.0.90:1111: getsockopt: connection refused</p>