1
0
mirror of https://github.com/docker/cli.git synced 2025-04-20 06:27:49 +03:00
Sebastiaan van Stijn df8b34595b
cli/command/container: stop, restart: rename "--time" to "--timeout"
This renames the `--time` flag as used on `docker stop` and `docker restart`
to `--timeout`,  bringing it in line with other uses for this property,
such as `--stop-timeout` on `docker run`.

The `--time` option is deprecated and hidden, but will be kept for
backward compatibility, as these options existed for a long time.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-09-30 09:43:54 +02:00

533 B

docker restart

Restart one or more containers

Aliases

docker container restart, docker restart

Options

Name Type Default Description
-s, --signal string Signal to send to the container
-t, --timeout int 0 Seconds to wait before killing the container