docker update & docker wait commands with example
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
update : Update configuration of one or more containers
[root@ip-172-31-14-110 centos]# docker update –cpu-shares 512 d28b65c987d8 ecstatic_shaw
d28b65c987d8
ecstatic_shaw
[root@ip-172-31-14-110 centos]# docker diff d28b65c987d8
C /tmp
A /tmp/jetty-0_0_0_0-8080-war-_-any-8581425030792705993
A /tmp/winstone6787664488571520537.jar
A /tmp/hsperfdata_jenkins
A /tmp/hsperfdata_jenkins/7
wait Block until one or more containers stop, then print their exit codes
in 1st terminal
[root@ip-172-31-14-110 centos]# docker wait 465d9c332e13
0
[root@ip-172-31-14-110 centos]# [root@ip-172-31-14-110 centos]
in 2nd terminal:
[root@ip-172-31-14-110 centos]# docker stop 465d9c332e13
465d9c332e13