How can I run a Python script in a remote Docker container?
<p>I am brand new to Docker, so I apologize for any ignorance.</p>

<p>I have a web API which needs to trigger a Python script to run. The script is very resource intensive (CPU and RAM), so it needs to run on a different server than the API server. I am planning to run this script within a Docker container. I am also planning to use Kubernates.</p>

<p>My API will build a container from an image, and then the Python script needs to run once the image is up and running.</p>

<p>How can I trigger the script to run? Would it make sense to use Rundeck for this? Or would it make more sense to simply use SSH? Or something else?</p>