mirror of https://github.com/docker/cli.git
allow restarting stopped containers by id
Signed-off-by: Wenzhi Liang <wenzhi.liang@gmail.com>
This commit is contained in:
parent
db0cbdff04
commit
9ad418fe97
|
@ -1883,12 +1883,18 @@ __docker_subcommand() {
|
||||||
"($help -):old name:__docker_containers" \
|
"($help -):old name:__docker_containers" \
|
||||||
"($help -):new name: " && ret=0
|
"($help -):new name: " && ret=0
|
||||||
;;
|
;;
|
||||||
(restart|stop)
|
(stop)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
"($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \
|
"($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \
|
||||||
"($help -)*:containers:__docker_runningcontainers" && ret=0
|
"($help -)*:containers:__docker_runningcontainers" && ret=0
|
||||||
;;
|
;;
|
||||||
|
(restart)
|
||||||
|
_arguments $(__docker_arguments) \
|
||||||
|
$opts_help \
|
||||||
|
"($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \
|
||||||
|
"($help -)*:containers:__docker_containers_ids" && ret=0
|
||||||
|
;;
|
||||||
(rm)
|
(rm)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
|
|
Loading…
Reference in New Issue