Difference between revisions of "Docker-compose restart"

From wikieduonline
Jump to navigation Jump to search
 
(11 intermediate revisions by 3 users not shown)
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 --help]]</code>
  
  <code>docker-compose restart && [[docker-compose logs]] -f</code>
+
Options:
 +
  --timeout , -t 10 Specify a shutdown timeout in seconds
  
Restarts all stopped and running services.
+
=== Examples ===
 +
<code>docker-compose restart && [[docker-compose logs]] -f</code>
  
  [[docker-compose restart]] SERVICE_NAME  
+
<code>Restarts all stopped and running services.</code>
 +
 
 +
  [[docker-compose]] restart SERVICE_NAME  
 
  Restarting SERVICE_NAME ... done
 
  Restarting SERVICE_NAME ... done
  
 +
<code>[[docker-compose restart --help]]</code>
  
 
== Related commands ==
 
== Related commands ==
 
* <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>
 +
* [[restart:]]
  
 
== See also ==
 
== See also ==
* {{docker-compose}}
+
* {{Docker-compose operations}}
 +
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]

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: