Browse Source

Allow anonymous pulls

Guillaume J. Charmes 12 years ago
parent
commit
96010e3ca1
1 changed files with 0 additions and 4 deletions
  1. 0 4
      commands.go

+ 0 - 4
commands.go

@@ -472,10 +472,6 @@ func (srv *Server) CmdPull(stdin io.ReadCloser, stdout io.Writer, args ...string
 		return nil
 		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) {
 	if srv.runtime.graph.LookupRemoteImage(remote, srv.runtime.authConfig) {
 		fmt.Fprintf(stdout, "Pulling %s...\n", remote)
 		fmt.Fprintf(stdout, "Pulling %s...\n", remote)
 		if err := srv.runtime.graph.PullImage(remote, srv.runtime.authConfig); err != nil {
 		if err := srv.runtime.graph.PullImage(remote, srv.runtime.authConfig); err != nil {