浏览代码

Merge pull request #4089 from shykes/autopull-useless-code

Remove useless code in client implementation of 'run'.
Michael Crosby 11 年之前
父节点
当前提交
19755bcdae
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      commands.go

+ 1 - 6
commands.go

@@ -1989,12 +1989,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)