what-is-docker-update-and-docker-wait-explain-with-example-commands

Docker update:
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. To specify more than one container, provide space-separated list of container names or IDs

Command example:
docker update –cpus 4 320f02d6f0f7

Docker wait
Block until one or more containers stop, then print their exit codes

Example:
1st terminal
docker wait 320f02d6f0f7
In another terminal, stop the container
Docker stop 320f02d6f0f7
in the 1st terminal it exits returning 0