Use correct auth config when logging in.

When logging in into a registry other than index.docker.io, docker will re-use cached credentials from i.d.io. This results in docker not asking for a password but instead sending what-ever password was cached for i.d.io.

cc @samalba