Difference between revisions of "Docker restart"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
+
[[Restart]] one or more containers
 
+
https://docs.docker.com/engine/reference/commandline/restart/
docker restart CONTAINER_NAME
 
  
  
 +
* <code>docker restart CONTAINER_NAME_1</code>
 +
* <code>docker restart CONTAINER_NAME_1 CONTAINER_NAME_2</code>
 
* <code>docker restart $(docker ps -q)</code>
 
* <code>docker restart $(docker ps -q)</code>
  
Line 9: Line 10:
 
* <code>[[docker-compose restart]]</code>
 
* <code>[[docker-compose restart]]</code>
 
* <code>[[docker start]]</code>
 
* <code>[[docker start]]</code>
 +
* <code>[[docker logs]]</code>
 +
* <code>[[docker-compose logs]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 06:15, 28 June 2020

Advertising: