From ad69580c899886fcd2b76aa1315f633d028ec7a5 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Fri, 22 Mar 2013 18:45:28 -0700 Subject: [PATCH] Allow anonymous pulls Upstream-commit: 96010e3ca134acb4707bbbb1fd8649d7de671229 Component: engine --- components/engine/commands.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/engine/commands.go b/components/engine/commands.go index 422dd07b46..4ca4f121b9 100644 --- a/components/engine/commands.go +++ b/components/engine/commands.go @@ -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 {