瀏覽代碼

Unable to find image error should print to stderr

Isao Jonas 12 年之前
父節點
當前提交
4ff649ce85
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1423,7 +1423,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 			tag = DEFAULTTAG
 		}
 
-		fmt.Printf("Unable to find image '%s' (tag: %s) locally\n", config.Image, tag)
+		fmt.Fprintf(cli.err, "Unable to find image '%s' (tag: %s) locally\n", config.Image, tag)
 
 		v := url.Values{}
 		repos, tag := utils.ParseRepositoryTag(config.Image)