How can I start a Docker container that is going to stop after being executed?

It sounds like you might be looking for our scheduled machines New feature: Scheduled machines