Difference between revisions of "Docker-compose restart"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
https://docs.docker.com/compose/reference/restart/
 
https://docs.docker.com/compose/reference/restart/
  
  <code>docker-compose restart</code> or <code>docker-compose restart SERVICE_NAME</code>
+
  <code>docker-compose restart</code>
 +
<code>docker-compose restart SERVICE_NAME</code>
  
 
  <code>docker-compose restart && [[docker-compose logs]] -f</code>  
 
  <code>docker-compose restart && [[docker-compose logs]] -f</code>  

Revision as of 15:36, 13 January 2023

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

docker-compose restart
docker-compose restart SERVICE_NAME
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: