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

Docker Update:
Update the container configuration like cpu, memory, restart policy, etc.

docker update --kernel-memory 512M ramesh
docker update --restart=on-failure:3 ramesh
docker update --cpus 2 ramesh
docker update --restart=no ramesh

Docker Wait:

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

docker wait ramesh
docker ps -a |grep ramesh
7181391c7b98 ubuntu "bash" 50 minutes ago Exited (127) 30 seconds ago
docker wait ramesh
docker stop ramesh
docker wait ramesh
docker kill ramesh

prints the exit codes accordingly.