From 3c3968692d3024fde90637dbdfe56f08de100cdd Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Thu, 13 Nov 2014 16:21:34 +0800 Subject: [PATCH] Cleanup:change latest to graph.DEFAULTTAG Signed-off-by: Lei Jitang --- api/client/commands.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/client/commands.go b/api/client/commands.go index da29b28f3d..ad94a8d996 100644 --- a/api/client/commands.go +++ b/api/client/commands.go @@ -1235,7 +1235,7 @@ func (cli *DockerCli) CmdPull(args ...string) error { ) taglessRemote, tag := parsers.ParseRepositoryTag(remote) if tag == "" && !*allTags { - newRemote = taglessRemote + ":latest" + newRemote = taglessRemote + ":" + graph.DEFAULTTAG } if tag != "" && *allTags { return fmt.Errorf("tag can't be used with --all-tags/-a") @@ -2034,7 +2034,7 @@ func (cli *DockerCli) pullImageCustomOut(image string, out io.Writer) error { repos, tag := parsers.ParseRepositoryTag(image) // pull only the image tagged 'latest' if no tag was specified if tag == "" { - tag = "latest" + tag = graph.DEFAULTTAG } v.Set("fromImage", repos) v.Set("tag", tag)