docker_compose_restart.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. command: docker compose restart
  2. short: Restart containers
  3. long: |-
  4. Restarts all stopped and running services.
  5. If you make changes to your `compose.yml` configuration, these changes are not reflected
  6. after running this command. For example, changes to environment variables (which are added
  7. after a container is built, but before the container's command is executed) are not updated
  8. after restarting.
  9. If you are looking to configure a service's restart policy, please refer to
  10. [restart](https://github.com/compose-spec/compose-spec/blob/master/spec.md#restart)
  11. or [restart_policy](https://github.com/compose-spec/compose-spec/blob/master/deploy.md#restart_policy).
  12. usage: docker compose restart
  13. pname: docker compose
  14. plink: docker_compose.yaml
  15. options:
  16. - option: timeout
  17. shorthand: t
  18. value_type: int
  19. default_value: "10"
  20. description: Specify a shutdown timeout in seconds
  21. deprecated: false
  22. hidden: false
  23. experimental: false
  24. experimentalcli: false
  25. kubernetes: false
  26. swarm: false
  27. deprecated: false
  28. experimental: false
  29. experimentalcli: false
  30. kubernetes: false
  31. swarm: false