docker-compose restart

From wikieduonline
Revision as of 10:16, 21 April 2024 by Welcome (talk | contribs) (→‎Related commands)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

docker-compose restart --help

Related commands

See also

Advertising: