Why Do Exit Code 1 Errors OccurĮxit Code 1 means that a container terminated, typically due to an application error or an invalid reference.Īn application error is a programming error in any code running within the container. We’ll provide several techniques for diagnosing and debugging Exit Code 1 in containers. If you see containers terminated with Exit Code 1, you’ll need to investigate the container and its applications more closely to see what caused the failure.
If a pod is unhealthy or frequently shuts down, you can diagnose the problem using the command kubectl describe pod In Kubernetes, container exit codes can help you diagnose issues with pods. In a Unix/Linux operating system, when an application terminates with Exit Code 1, the operating system ends the process using Signal 7, known as SIGHUP.
Exit Code 1 indicates that a container shut down, either because of an application failure or because the image pointed to an invalid file.