Is there any possibility to start a Docker container (with certain commands in CMD) and make sure it doesn't stay up for more than a specified period time?
E.g. I have an Ubuntu container, which I want to start, execute some commands and exit (kill the container) at the end. But those commands may include infinite loops or may just last a very long time, so I want to be sure the Docker container is automatically killed after a specified amount of time.