Difference between revisions of "Docker update"

From wikieduonline
Jump to navigation Jump to search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
 +
<code>[[docker update]]</code> update configuration of one or more containers. [https://docs.docker.com/engine/reference/commandline/update/ ref]
  
 +
:<code>[[docker]] update --restart=always CONTAINER_NAME</code> <ref>https://docs.docker.com/engine/reference/commandline/update/</ref>
 +
:<code>[[docker]] update --restart=no CONTAINER_NAME</code>
  
  
  
* [[Start configuration behavior and restart policy]]
+
Modify all containers to not start automatically:
 +
docker update --restart=no $([[docker container ls]] -aq)
 +
 
 +
== Related commands ==
 +
* <code>[[docker pull]]</code>
 +
* <code>[[docker start]]</code>
 +
* <code>[[docker stop]]</code>
 +
* Update all your local images:
 +
<code>docker images |grep -v REPOSITORY|awk '{print $1}'|xargs -L1 docker pull</code> (See also: <code>[[docker-compose pull]]</code>)
 +
 
 +
== Activities ==
 +
* Read [[Start configuration behavior and restart policy]]
  
  
 
== See also ==
 
== See also ==
 +
* {{docker update}}
 +
* {{docker images management}}
 
* {{docker}}
 
* {{docker}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Latest revision as of 17:29, 4 May 2023

Advertising: