Browse Source

Merge pull request #1738 from jonasi/error-to-stderr

Unable to find image error should print to stderr
Michael Crosby 12 năm trước cách đây
mục cha
commit
74982bda32
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1426,7 +1426,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 			tag = DEFAULTTAG
 			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{}
 		v := url.Values{}
 		repos, tag := utils.ParseRepositoryTag(config.Image)
 		repos, tag := utils.ParseRepositoryTag(config.Image)