Difference between revisions of "Docker-compose restart"

From wikieduonline
Jump to navigation Jump to search
Line 20: Line 20:
 
* <code>[[docker-compose stop]]</code>
 
* <code>[[docker-compose stop]]</code>
 
* <code>[[docker-compose start]]</code>
 
* <code>[[docker-compose start]]</code>
* {{Docker-compose operations}}
 
 
* <code>[[docker-compose logs -f]]</code>
 
* <code>[[docker-compose logs -f]]</code>
 
* <code>[[docker-compose ps]]</code>
 
* <code>[[docker-compose ps]]</code>

Revision as of 06:11, 16 February 2023

https://docs.docker.com/compose/reference/restart/

docker-compose restart
docker-compose restart SERVICE_NAME

Options:

--timeout , -t	10	Specify a shutdown timeout in seconds
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: