What is docker update and docker wait? Explain with example commands.

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

docker update

Updates the running/exited container configuration such as memory, cpu, restart, and etc.,

docker update --kernel-memory 100M ezhilUbuntu24
docker update --restart=on-failure:5 ezhilUbuntu22
docker update --cpus 2 ezhilPython2

docker wait

Blocks the terminal execution till one or more containers stop and then print their exit codes.

docker wait 2363010fd463
0
docker stop ezhilUbuntu25

docker wait ezhilUbuntu26
137
docker kill ezhilUbuntu26

Prints the respective exit codes, incase stop "0", kill "137"