Pārlūkot izejas kodu

Merge pull request #1259 from dsissitka/patch-3

*Documentation: Updated the stop command's docs.
Ken Cochrane 12 gadi atpakaļ
vecāks
revīzija
2bba279cf1
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 1 1
      commands.go
  2. 3 1
      docs/sources/commandline/command/stop.rst

+ 1 - 1
commands.go

@@ -475,7 +475,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
 
 
 func (cli *DockerCli) CmdStop(args ...string) error {
 func (cli *DockerCli) CmdStop(args ...string) error {
 	cmd := Subcmd("stop", "[OPTIONS] CONTAINER [CONTAINER...]", "Stop a running container")
 	cmd := Subcmd("stop", "[OPTIONS] CONTAINER [CONTAINER...]", "Stop a running container")
-	nSeconds := cmd.Int("t", 10, "Number of seconds to try to stop for before killing the container. Default=10")
+	nSeconds := cmd.Int("t", 10, "Number of seconds to wait for the container to stop before killing it.")
 	if err := cmd.Parse(args); err != nil {
 	if err := cmd.Parse(args); err != nil {
 		return nil
 		return nil
 	}
 	}

+ 3 - 1
docs/sources/commandline/command/stop.rst

@@ -8,6 +8,8 @@
 
 
 ::
 ::
 
 
-    Usage: docker stop [OPTIONS] NAME
+    Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
 
 
     Stop a running container
     Stop a running container
+
+      -t=10: Number of seconds to wait for the container to stop before killing it.