1
0
mirror of https://github.com/docker/cli.git synced 2025-07-30 17:03:07 +03:00

add --signal option to stop and restart

Wording and documentation still need to be updated, but will do
so in a follow-up.

Also removing the default "10 seconds" from the timeout flags, as
this default is not actually used, and may not match the actual
default (which is defined on the daemon side).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2022-02-18 12:25:17 +01:00
parent 53f8ed4bec
commit 86c30e6a0d
4 changed files with 22 additions and 16 deletions

View File

@ -12,8 +12,8 @@ Usage: docker restart [OPTIONS] CONTAINER [CONTAINER...]
Restart one or more containers
Options:
--help Print usage
-t, --time int Seconds to wait for stop before killing the container (default 10)
-s, --signal string Signal to send to the container
-t, --time int Seconds to wait before killing the container
```
## Examples

View File

@ -12,8 +12,8 @@ Usage: docker stop [OPTIONS] CONTAINER [CONTAINER...]
Stop one or more running containers
Options:
--help Print usage
-t, --time int Seconds to wait for stop before killing it (default 10)
-s, --signal string Signal to send to the container
-t, --time int Seconds to wait before killing the container
```
## Description