You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where a pod executes work and should automatically exit. The current behaviour is that pods restart after the ENTRYPOINT command has ended. This forces me to use the runpodctl from within a pod to put it in exited state. To test this behaviour. I have the following set-up:
Dockerfile
FROM ubuntu:22.04
COPY . .
RUN chmod +x run.sh
ENTRYPOINT ["./run.sh"]
run.sh
#!/bin/sh# wait for 10 secondsforiin$(seq 20 -1 0);doecho$i
sleep 1
done# stop the podecho"Stopping the pod"
runpodctl stop pod $RUNPOD_POD_ID
this results in the following output whenever the command is ran: 2024-06-11T14:33:40.393686854Z Error: Post "https://api.runpod.io/graphql?api_key=XXX": x509: certificate signed by unknown authority
Any thoughts?
ps: is there any other way to exit the pod after executing, instead of restarting it automatically?
The text was updated successfully, but these errors were encountered:
I have a use case where a pod executes work and should automatically exit. The current behaviour is that pods restart after the ENTRYPOINT command has ended. This forces me to use the runpodctl from within a pod to put it in
exited
state. To test this behaviour. I have the following set-up:Dockerfile
run.sh
this results in the following output whenever the command is ran:
2024-06-11T14:33:40.393686854Z Error: Post "https://api.runpod.io/graphql?api_key=XXX": x509: certificate signed by unknown authority
Any thoughts?
ps: is there any other way to exit the pod after executing, instead of restarting it automatically?
The text was updated successfully, but these errors were encountered: