2021-03-09 22:09:45 +01:00
|
|
|
command: docker compose restart
|
|
|
|
short: Restart containers
|
2022-03-09 12:57:07 +01:00
|
|
|
long: |-
|
|
|
|
Restarts all stopped and running services.
|
|
|
|
|
|
|
|
If you make changes to your `compose.yml` configuration, these changes are not reflected
|
|
|
|
after running this command. For example, changes to environment variables (which are added
|
|
|
|
after a container is built, but before the container's command is executed) are not updated
|
|
|
|
after restarting.
|
|
|
|
|
|
|
|
If you are looking to configure a service's restart policy, please refer to
|
|
|
|
[restart](https://github.com/compose-spec/compose-spec/blob/master/spec.md#restart)
|
|
|
|
or [restart_policy](https://github.com/compose-spec/compose-spec/blob/master/deploy.md#restart_policy).
|
2021-03-09 22:09:45 +01:00
|
|
|
usage: docker compose restart
|
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2021-09-13 17:41:21 +02:00
|
|
|
- option: timeout
|
|
|
|
shorthand: t
|
|
|
|
value_type: int
|
|
|
|
default_value: "10"
|
|
|
|
description: Specify a shutdown timeout in seconds
|
|
|
|
deprecated: false
|
2022-03-09 12:33:16 +01:00
|
|
|
hidden: false
|
2021-09-13 17:41:21 +02:00
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2021-03-09 22:09:45 +01:00
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|