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!
The docker update command dynamically updates container configuration. You can use this command to prevent containers from consuming too many resources from their Docker host. With a single command, you can place limits on a single container or on many.
docker update --cpu-shares 512 abebf7571666
“docker wait” is equivalent to “docker container wait”.
Block until one or more containers stop, then print their exit codes means this command would to wait until Docker container stops and print a exit code.
docker wait my_container