Difference between revisions of "Docker-compose restart"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by one other user not shown)
Line 9: Line 9:
 
  --timeout , -t 10 Specify a shutdown timeout in seconds
 
  --timeout , -t 10 Specify a shutdown timeout in seconds
  
Examples:
+
=== Examples ===
<code>docker-compose restart && [[docker-compose logs]] -f</code>  
+
<code>docker-compose restart && [[docker-compose logs]] -f</code>  
  
Restarts all stopped and running services.
+
<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
  
[[docker-compose restart --help]]
+
<code>[[docker-compose restart --help]]</code>
  
 
== Related commands ==
 
== Related commands ==
Line 24: Line 24:
 
* <code>[[docker-compose logs -f]]</code>
 
* <code>[[docker-compose logs -f]]</code>
 
* <code>[[docker-compose ps]]</code>
 
* <code>[[docker-compose ps]]</code>
 +
* [[restart:]]
  
 
== See also ==
 
== See also ==

Latest revision as of 10:16, 21 April 2024

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[edit]

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[edit]

See also[edit]

Advertising: