docker update & docker wait commands with example

DevOps

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

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