Skip to content

Commit e417536

Browse files
committed
docker restarts running OR stopped containers, docs edit rm "running"
Signed-off-by: Sally O'Malley <somalley@redhat.com>
1 parent 148be8b commit e417536

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

api/client/restart.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import (
99
flag "github.com/docker/docker/pkg/mflag"
1010
)
1111

12-
// CmdRestart restarts one or more running containers.
12+
// CmdRestart restarts one or more containers.
1313
//
1414
// Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
1515
func (cli *DockerCli) CmdRestart(args ...string) error {
16-
cmd := Cli.Subcmd("restart", []string{"CONTAINER [CONTAINER...]"}, "Restart a running container", true)
16+
cmd := Cli.Subcmd("restart", []string{"CONTAINER [CONTAINER...]"}, "Restart a container", true)
1717
nSeconds := cmd.Int([]string{"t", "-time"}, 10, "Seconds to wait for stop before killing the container")
1818
cmd.Require(flag.Min, 1)
1919

contrib/completion/fish/docker.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from push' -a '(__fish_print
279279
complete -c docker -f -n '__fish_docker_no_subcommand' -a rename -d 'Rename an existing container'
280280

281281
# restart
282-
complete -c docker -f -n '__fish_docker_no_subcommand' -a restart -d 'Restart a running container'
282+
complete -c docker -f -n '__fish_docker_no_subcommand' -a restart -d 'Restart a container'
283283
complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -l help -d 'Print usage'
284284
complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -s t -l time -d 'Number of seconds to try to stop for before killing the container. Once killed it will then be restarted. Default is 10 seconds.'
285285
complete -c docker -A -f -n '__fish_seen_subcommand_from restart' -a '(__fish_print_docker_containers running)' -d "Container"

docker/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var dockerCommands = []command{
4646
{"pull", "Pull an image or a repository from a registry"},
4747
{"push", "Push an image or a repository to a registry"},
4848
{"rename", "Rename a container"},
49-
{"restart", "Restart a running container"},
49+
{"restart", "Restart a container"},
5050
{"rm", "Remove one or more containers"},
5151
{"rmi", "Remove one or more images"},
5252
{"run", "Run a command in a new container"},

docs/reference/commandline/restart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ weight=1
1313

1414
Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
1515

16-
Restart a running container
16+
Restart a container
1717

1818
-t, --time=10 Seconds to wait for stop before killing the container
1919

man/docker-restart.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
% Docker Community
33
% JUNE 2014
44
# NAME
5-
docker-restart - Restart a running container
5+
docker-restart - Restart a container
66

77
# SYNOPSIS
88
**docker restart**

man/docker.1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ inside it)
273273
See **docker-rename(1)** for full documentation on the **rename** command.
274274

275275
**restart**
276-
Restart a running container
276+
Restart a container
277277
See **docker-restart(1)** for full documentation on the **restart** command.
278278

279279
**rm**

0 commit comments

Comments
 (0)