Fixed tag option for "docker pull" (the option was ignored)

Upstream-commit: cd0fef633c5d871b192146e405ca7c5bebb2f3ba
Component: engine
This commit is contained in:
Sam Alba
2013-07-12 10:42:54 -07:00
parent 6ed4740f8b
commit c8bc9a992c

View File

@ -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)