From cd0fef633c5d871b192146e405ca7c5bebb2f3ba Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Fri, 12 Jul 2013 10:42:54 -0700 Subject: [PATCH] Fixed tag option for "docker pull" (the option was ignored) --- commands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index b3b1a57199..b581590bc2 100644 --- a/commands.go +++ b/commands.go @@ -821,7 +821,9 @@ func (cli *DockerCli) CmdPull(args ...string) error { } remote, parsedTag := utils.ParseRepositoryTag(cmd.Arg(0)) - *tag = parsedTag + if *tag == "" { + *tag = parsedTag + } v := url.Values{} v.Set("fromImage", remote)