title: Docker registry and index
body: <p>Good day!</p>
  
  <p>I have looked a ton of info about docker registry and still have some questions about it... Please, help me to understand some things about index and registry.</p>
  
  <ol>
  <li><p>I have installed docker-registry for private repositories. And I worked with standalone mode true. As I understand, docker registry can't authenticate users - it asks index for permissions and auth. So, I disabled standalone mode, so docker-registry needs to authenticate me by index.docker.io, but it don't work - registry allows me to push and pull any images I want. So the question is - why docker-registry doesn't try to authenticate me by i
  index.docker.io?</p></li>
  <li><p>If docker-registry authenticates me through index.docker.io, so where authorization parameters are stored? I mean, if I want to grant user vozerov to push only to private.repo.domain:5000/vozerov repository.</p></li>
  <li><p>Docker searches through index. So if I want to search my images in my private repository I need to tell index.docker.io that there is new private repository. Is it real or I tell something wrong?</p></li>
  <li><p>I found docker-index project at github - <a href="https://github.com/ekristen/docker-index">https://github.com/ekristen/docker-index</a>. It is alternative for index.docker.io. So, if I install it, login to it, would docker search command search through my private index or through index.docker.io?</p></li>
  </ol>
  
  <p><strong>UPD</strong>:</p>
  
  <p>I worked a lot with docker-registry this night, so I have a bit confused:</p>
  
  <ol>
  <li><p>If standalone mode is true, then disable_token_auth is not used in
  any variant. So we can:</p>
  
  <p>1.1 Use this repo without auth (pull and push rights to anyone).</p>
  
  <p>1.2 Use basic auth with nginx and docker login my.registry.com, so every user that have basic auth info can push and pull. So, we don't have authorization at this mode.</p></li>
  <li><p>If standalone mode is false, then docker-registry need to communicate with index.docker.io, but it doesn't. Two variants:</p>
  
  <p>2.1. If disable_auth_token is true - I get 405 error (method not allowed), but it means that I allow anyone to push or to pull images, or not?</p>
  
  <p>2.2. If disable_auth_token is false - I get 405 error...</p></li>
  </ol>
  
  <p>And for 2.1 and 2.2 docker login my.registry.com not working - it shows me 404 error... Maybe it is my misconfiguration?</p>