1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Allow anonymous pulls

This commit is contained in:
Guillaume J. Charmes 2013-03-22 18:45:28 -07:00
parent e55b8b2fd9
commit 96010e3ca1

View file

@ -472,10 +472,6 @@ func (srv *Server) CmdPull(stdin io.ReadCloser, stdout io.Writer, args ...string
return nil
}
if srv.runtime.authConfig == nil {
return fmt.Errorf("Please login prior to push. ('docker login')")
}
if srv.runtime.graph.LookupRemoteImage(remote, srv.runtime.authConfig) {
fmt.Fprintf(stdout, "Pulling %s...\n", remote)
if err := srv.runtime.graph.PullImage(remote, srv.runtime.authConfig); err != nil {