title: Docker registry 2.0 API v2
body: <p>I pulled and setup the local docker registry:2.0</p>
  
  <p>I have tried pushing an image successfully, but when ever I try searching for an image I get 404:</p>
  
  <pre><code>root@ip-10-232-0-153:~# curl -v -X GET http://localhost:5000/v2/search
  * Hostname was NOT found in DNS cache
  *   Trying 127.0.0.1...
  * Connected to localhost (127.0.0.1) port 5000 (#0)
  &gt; GET /v2/search HTTP/1.1
  &gt; User-Agent: curl/7.35.0
  &gt; Host: localhost:5000
  &gt; Accept: */*
  &gt;
  &lt; HTTP/1.1 404 Not Found
  &lt; Content-Type: text/plain; charset=utf-8
  &lt; Docker-Distribution-Api-Version: registry/2.0
  &lt; Date: Fri, 08 May 2015 00:00:45 GMT
  &lt; Content-Length: 19
  &lt;
  404 page not found
  * Connection #0 to host localhost left intact
  </code></pre>
  
  <p>Also when I try to curl localhost:5000, I just get a 404:</p>
  
  <pre><code>404 page not found
  </code></pre>