Meaning: Sets the amount of time to wait for the container to stop before forcefully killing it.
Usage: Allows for graceful shutdowns by specifying a timeout period.
Example: docker stop -t 10 my-container
waits 10 seconds before forcefully stopping my-container
.
docker stop -t <seconds> <container_name>