title: How to make docker cli use dockerhub v2 registry url
body: <p>When I try to push an image like </p>
  
  <pre><code>docker push jikuma/dockercomposetest
  </code></pre>
  
  <p>it is resolved as </p>
  
  <blockquote>
    <p>docker.io/jikuma/dockercomposetest repository url.</p>
  </blockquote>
  
  <p>I want to use v2 docker hub registry url. How can I do that. What should be my registry url. And how to make it default for docker client?</p>
  
  <p>Here is docer version output. </p>
  
  <pre><code>Client: 
    Version:      17.06.0-ce     
    API version:  1.30  
    Go version:   go1.8.3    
    Git commit:   02c1d87
    Built:        Fri Jun 23 21:30:30 2017
    OS/Arch:      windows/amd64
  
  Server:
    Version:      17.06.0-ce
    API version:  1.30 (minimum version 1.12)
    Go version:   go1.8.3
    Git commit:   02c1d87
    Built:        Fri Jun 23 21:51:55 2017
    OS/Arch:      linux/amd64
    Experimental: true
  </code></pre>