Allow anonymous pulls

Upstream-commit: 96010e3ca134acb4707bbbb1fd8649d7de671229
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-03-22 18:46:47 -07:00
parent 341f5cd409
commit ad69580c89
-4
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 {