From e3140e1e69b24f32ffcc2dd94b7d82ad9305a7bc Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Tue, 11 Feb 2014 20:16:58 -0800 Subject: [PATCH] Remove useless code in client implementation of 'run'. This facilitates refactoring commands.go. Docker-DCO-1.1-Signed-off-by: Solomon Hykes (github: shykes) --- commands.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/commands.go b/commands.go index 973a41d86a..331e519c8d 100644 --- a/commands.go +++ b/commands.go @@ -1993,12 +1993,7 @@ func (cli *DockerCli) CmdRun(args ...string) error { stream, statusCode, err := cli.call("POST", "/containers/create?"+containerValues.Encode(), config, false) //if image not found try to pull it if statusCode == 404 { - _, tag := utils.ParseRepositoryTag(config.Image) - if tag == "" { - tag = DEFAULTTAG - } - - fmt.Fprintf(cli.err, "Unable to find image '%s' (tag: %s) locally\n", config.Image, tag) + fmt.Fprintf(cli.err, "Unable to find image '%s' locally\n", config.Image) v := url.Values{} repos, tag := utils.ParseRepositoryTag(config.Image)