What is the use of “docker wait” commands? with example and image

docker wait command is used to block the container until the container exit. once the container is stoped, it returns the exit code (0)