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)