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
No its not needed
which template are you using?
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" ]
You can just create a pod and start a web terminal can you?
There should be a button like that
"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
That is correct, what does /workdir/src/train.py does?
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?
No but you can override the CMD
just override it with sleep infinity then
that seems to have done it! I am now able to start a web terminal
thank you!