Sfoglia il codice sorgente

Merge pull request #4113 from SvenDowideit/build-quiet-help

add a little reenforcement to the help for docker build -q
Victor Vieux 11 anni fa
parent
commit
382659e03a
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      api/client.go
  2. 1 1
      docs/sources/reference/commandline/cli.rst

+ 1 - 1
api/client.go

@@ -136,7 +136,7 @@ func (cli *DockerCli) CmdInsert(args ...string) error {
 func (cli *DockerCli) CmdBuild(args ...string) error {
 func (cli *DockerCli) CmdBuild(args ...string) error {
 	cmd := cli.Subcmd("build", "[OPTIONS] PATH | URL | -", "Build a new container image from the source code at PATH")
 	cmd := cli.Subcmd("build", "[OPTIONS] PATH | URL | -", "Build a new container image from the source code at PATH")
 	tag := cmd.String([]string{"t", "-tag"}, "", "Repository name (and optionally a tag) to be applied to the resulting image in case of success")
 	tag := cmd.String([]string{"t", "-tag"}, "", "Repository name (and optionally a tag) to be applied to the resulting image in case of success")
-	suppressOutput := cmd.Bool([]string{"q", "-quiet"}, false, "Suppress verbose build output")
+	suppressOutput := cmd.Bool([]string{"q", "-quiet"}, false, "Suppress the verbose output generated by the containers")
 	noCache := cmd.Bool([]string{"#no-cache", "-no-cache"}, false, "Do not use cache when building the image")
 	noCache := cmd.Bool([]string{"#no-cache", "-no-cache"}, false, "Do not use cache when building the image")
 	rm := cmd.Bool([]string{"#rm", "-rm"}, false, "Remove intermediate containers after a successful build")
 	rm := cmd.Bool([]string{"#rm", "-rm"}, false, "Remove intermediate containers after a successful build")
 	if err := cmd.Parse(args); err != nil {
 	if err := cmd.Parse(args); err != nil {

+ 1 - 1
docs/sources/reference/commandline/cli.rst

@@ -186,7 +186,7 @@ Examples:
     Build a new container image from the source code at PATH
     Build a new container image from the source code at PATH
       -t, --time="": Repository name (and optionally a tag) to be applied 
       -t, --time="": Repository name (and optionally a tag) to be applied 
              to the resulting image in case of success.
              to the resulting image in case of success.
-      -q, --quiet=false: Suppress verbose build output.
+      -q, --quiet=false: Suppress the verbose output generated by the containers.
       --no-cache: Do not use the cache when building the image.
       --no-cache: Do not use the cache when building the image.
       --rm: Remove intermediate containers after a successful build
       --rm: Remove intermediate containers after a successful build