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
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
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" ]Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
"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
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
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

I believe runpod does not have the ability to do this or edit the docker run command right?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
that seems to have done it! I am now able to start a web terminal
thank you!