Debian Codegraph @

docs/reference/docker_compose_restart.yaml

raw
1 command: docker compose restart
2 short: Restart service containers
3 long: |-
4 Restarts all stopped and running services, or the specified services only.
5
6 If you make changes to your `compose.yml` configuration, these changes are not reflected
7 after running this command. For example, changes to environment variables (which are added
8 after a container is built, but before the container's command is executed) are not updated
9 after restarting.
10
11 If you are looking to configure a service's restart policy, refer to
12 [restart](https://github.com/compose-spec/compose-spec/blob/main/spec.md#restart)
13 or [restart_policy](https://github.com/compose-spec/compose-spec/blob/main/deploy.md#restart_policy).
14 usage: docker compose restart [OPTIONS] [SERVICE...]
15 pname: docker compose
16 plink: docker_compose.yaml
17 options:
18 - option: no-deps
19 value_type: bool
20 default_value: "false"
21 description: Don't restart dependent services
22 deprecated: false
23 hidden: false
24 experimental: false
25 experimentalcli: false
26 kubernetes: false
27 swarm: false
28 - option: timeout
29 shorthand: t
30 value_type: int
31 default_value: "0"
32 description: Specify a shutdown timeout in seconds
33 deprecated: false
34 hidden: false
35 experimental: false
36 experimentalcli: false
37 kubernetes: false
38 swarm: false
39 inherited_options:
40 - option: dry-run
41 value_type: bool
42 default_value: "false"
43 description: Execute command in dry run mode
44 deprecated: false
45 hidden: false
46 experimental: false
47 experimentalcli: false
48 kubernetes: false
49 swarm: false
50 deprecated: false
51 hidden: false
52 experimental: false
53 experimentalcli: false
54 kubernetes: false
55 swarm: false
56