docker restarts running OR stopped containers, docs edit rm "running"

Signed-off-by: Sally O'Malley <somalley@redhat.com>
This commit is contained in:
Sally O'Malley
2015-09-20 09:16:27 -04:00
parent 148be8bd7e
commit e41753678d
6 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -9,11 +9,11 @@ import (
flag "github.com/docker/docker/pkg/mflag"
)
// CmdRestart restarts one or more running containers.
// CmdRestart restarts one or more containers.
//
// Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
func (cli *DockerCli) CmdRestart(args ...string) error {
cmd := Cli.Subcmd("restart", []string{"CONTAINER [CONTAINER...]"}, "Restart a running container", true)
cmd := Cli.Subcmd("restart", []string{"CONTAINER [CONTAINER...]"}, "Restart a container", true)
nSeconds := cmd.Int([]string{"t", "-time"}, 10, "Seconds to wait for stop before killing the container")
cmd.Require(flag.Min, 1)