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.
Docker Update
The docker update command dynamically updates container configuration. We can use this command to prevent containers from consuming too many resources from their Docker host. With this command, we can place limits on a single container or on many.
docker update [OPTIONS] <container_name>
Before update cpu shares option β

After update cpu shares option β

Docker Wait
Block until one or more containers stop, then print their exit codes
docker wait <container_name>
Example of running docker wait β Start a container in the background.
$ docker run -dit --name=mine ubuntu bash
Run docker wait
, which should block until the container exits.
$ docker wait mine
In another terminal, stop the first container. The docker wait
command above returns the exit code.
$ docker stop mine
This is the same docker wait
command from above, but it now exits, returning 0
.
$ docker wait mine
0
