R
RunPod3mo ago
beanie

Docker run in interactive mode

Hi, I want to be able to ssh into my pod and run bash commands. If i provide no entry command in my Dockerfile I am unable to connect to my pod via ssh. I also don't see anywhere with the option to edit the docker run command to include the interactive flag. Any help is appreciated
10 Replies
nerdylive
nerdylive3mo ago
No its not needed which template are you using?
beanie
beanie3mo ago
Im using a custom message. Here is my dockerfile FROM ultralytics/ultralytics WORKDIR /workdir COPY src /workdir/src COPY datasets /workdir/datasets # i want to be able to run this manually # CMD [ "python", "src/train.py" ]
nerdylive
nerdylive3mo ago
You can just create a pod and start a web terminal can you? There should be a button like that
beanie
beanie3mo ago
"If it has no start command, the docker image would keep restarting forever, making it impossible for you to ssh into the pod" This is what i have been told by someone at runpod support. The web terminal never starts up
nerdylive
nerdylive3mo ago
That is correct, what does /workdir/src/train.py does?
beanie
beanie3mo ago
Starts my model training. I want to be able to run that manually through a terminal as I will be training with lots of different settings. On vast.ai it is possible with this option
beanie
beanie3mo ago
No description
beanie
beanie3mo ago
I believe runpod does not have the ability to do this or edit the docker run command right?
nerdylive
nerdylive3mo ago
No but you can override the CMD just override it with sleep infinity then
beanie
beanie3mo ago
that seems to have done it! I am now able to start a web terminal thank you!
Want results from more Discord servers?
Add your server