It Dynamically updates container configuration. With the use of this command we can set a limit on the resource that a container can consume. Resources such as memory size, no. of cpu, cpu shares, swap memory size, pid limit and more. Most of the this limits can be set on a running container.
The ‘docker wait’ is a command that is used to wait or block until one or more containers stop, and then it outputs their exit codes.