Prevent docker containers from running longer than 2 seconds.