run commands remotely on my pod

Hi I've been trying for an hour to run bash command on my Pod via python. Nothing seems to work. Tried fabric, paramaiko. runpodctl has this command:
$ runpodctl exec python /ru.py --pod_id <redacted>
Running remote Python shell...
Waiting for Pod to come online...
$ runpodctl exec python /ru.py --pod_id <redacted>
Running remote Python shell...
Waiting for Pod to come online...
But it just hangs there and does nothing this ru.py only prints Hello World and does nothing else I tried having this ru.py locally, didn't work. I tried making this ru.py on my pod, also didn't work.
6 Replies
ajgeiss0702
ajgeiss07028mo ago
I haven't used runpodctl, however ive been poking through its code. Is the pod running? It looks like runpodctl doesn't try to start the pod if its offline
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Michael C.
Michael C.OP8mo ago
Yes the pod was running. the template was : rehabc/pytorch2.0.0-python3.10-cuda11.8-jupyter-jp
Unknown User
Unknown User8mo ago
Message Not Public
Sign In & Join Server To View
Michael C.
Michael C.OP7mo ago
Shit that's what I wanted to avoid. Any suggestion on where to store my docker image? I need it to be private / not publicly visible. Afted I've got my image pushed to a registry on how I create a pod with that particular image?
Unknown User
Unknown User7mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?