Exit codes

How to troubleshoot exit codes

Exit codes give you information about terminated containers, specifying why the container terminated. In general, a 0 exit code is successful and indicates a purposefully stopped container, while a 1 exit code indicates an error. Other exit codes (larger than 1) also indicate an error state, and contain more information about what kind of error occurred.

Finding the exit code of a failing container

You can see the latest output of your instances, including exit codes and error messages, by viewing the logs for that instance.

Common exit codes

  • 137: OOM (out of memory) indicates that your container did not have enough RAM allocated to process what it was trying to do. Sometimes this can be resolved by assigning more resources to your instances, but if it is the cause of a memory leak or similar, you might need to debug the root cause in your application.

Last updated