Difference between revisions of "Docker-compose restart"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
=== Examples === | === Examples === | ||
− | + | <code>docker-compose restart && [[docker-compose logs]] -f</code> | |
− | + | <code>Restarts all stopped and running services.</code> | |
[[docker-compose]] restart SERVICE_NAME | [[docker-compose]] restart SERVICE_NAME | ||
Restarting SERVICE_NAME ... done | Restarting SERVICE_NAME ... done | ||
− | + | <code>[[docker-compose restart --help]]</code> | |
== Related commands == | == Related commands == |
Revision as of 07:07, 16 February 2023
https://docs.docker.com/compose/reference/restart/
docker-compose restart
docker-compose restart SERVICE_NAME
docker-compose restart --help
Options:
--timeout , -t 10 Specify a shutdown timeout in seconds
Examples
docker-compose restart && docker-compose logs -f
Restarts all stopped and running services.
docker-compose restart SERVICE_NAME Restarting SERVICE_NAME ... done
Related commands
See also
Advertising: