2021-03-09 22:09:45 +01:00
|
|
|
command: docker compose restart
|
2022-07-29 15:30:11 +02:00
|
|
|
short: Restart service containers
|
2022-03-09 12:57:07 +01:00
|
|
|
long: |-
|
2022-07-29 15:30:11 +02:00
|
|
|
Restarts all stopped and running services, or the specified services only.
|
2022-03-09 12:57:07 +01:00
|
|
|
|
2022-07-26 14:58:08 +02:00
|
|
|
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.
|
2022-03-09 12:57:07 +01:00
|
|
|
|
2022-07-26 14:58:08 +02:00
|
|
|
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).
|
2022-08-02 13:11:57 +02:00
|
|
|
usage: docker compose restart [OPTIONS] [SERVICE...]
|
2021-03-09 22:09:45 +01:00
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2023-02-14 11:03:29 +01:00
|
|
|
- option: no-deps
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Don't restart dependent services.
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2022-07-26 14:58:08 +02:00
|
|
|
- option: timeout
|
|
|
|
shorthand: t
|
|
|
|
value_type: int
|
|
|
|
default_value: "10"
|
|
|
|
description: Specify a shutdown timeout in seconds
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
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
|
|
|
|
|