I have a shell script thats running a docker container. I want the shell script to kill the container if it runs longer than x seconds.
How would I monitor the time in the shell script to kill it if the time the script has been running exceeds x seconds?