πŸš€ DevOps Certified Professional
πŸ“… Starting: 1st of Every Month 🀝 +91 8409492687 | 🀝 +1 (469) 756-6329 πŸ” Contact@DevOpsSchool.com

docker update & docker wait commands with example

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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