RunpodR
Runpod6mo ago
mcmatak

Deploy invalid pod with critical fault

When i have some problem inside the docker code, like start.sh exited. How i can stop pod not automatically restart? I dont want to terminate pod bcs i am not abble to find the log after that. I need to stop but do not restart, bcs i dont want to pay until somebody fix the problem. All pods are started automatically by rest api request.

If i returned exit 0 or exit 1 always the pod is restarted automatically, depends on the docker-compose.yaml?

this i have set

restart: on-failure

so when i returned exit 0 than it should not be restarted, or?

also where to save error, i used ENV variables to save last errors, any best practices on this problem?
Was this page helpful?