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

docker update

Updates the running/exited container configuration such as memory, cpu, restart, and etc.,

docker update --kernel-memory 100M ezhilUbuntu24
docker update --restart=on-failure:5 ezhilUbuntu22
docker update --cpus 2 ezhilPython2

docker wait

Blocks the terminal execution till one or more containers stop and then print their exit codes.

docker wait 2363010fd463
docker stop ezhilUbuntu25

docker wait ezhilUbuntu26
docker kill ezhilUbuntu26

Prints the respective exit codes, incase stop "0", kill "137"