docker_compose_restart.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. 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, 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 [OPTIONS] [SERVICE...]
  13. pname: docker compose
  14. plink: docker_compose.yaml
  15. options:
  16. - option: no-deps
  17. value_type: bool
  18. default_value: "false"
  19. description: Don't restart dependent services
  20. deprecated: false
  21. hidden: false
  22. experimental: false
  23. experimentalcli: false
  24. kubernetes: false
  25. swarm: false
  26. - option: timeout
  27. shorthand: t
  28. value_type: int
  29. default_value: "0"
  30. description: Specify a shutdown timeout in seconds
  31. deprecated: false
  32. hidden: false
  33. experimental: false
  34. experimentalcli: false
  35. kubernetes: false
  36. swarm: false
  37. inherited_options:
  38. - option: dry-run
  39. value_type: bool
  40. default_value: "false"
  41. description: Execute command in dry run mode
  42. deprecated: false
  43. hidden: false
  44. experimental: false
  45. experimentalcli: false
  46. kubernetes: false
  47. swarm: false
  48. deprecated: false
  49. hidden: false
  50. experimental: false
  51. experimentalcli: false
  52. kubernetes: false
  53. swarm: false