Module
- Harness Continuous Integration
Environment
-
Infrastructure: Harness Saas
-
OS: Linux, Windows, Mac
Issue
I was working on a build pipeline and while pushing the image to DockerHub, the pipeline failed with error, exit status 1.
Resolution
We can get exit status 1 error for 2 reasons, the first reason is, you need to make sure the name of the repository you provide in the Docker Repository is in the format <hub-user>/<repo-name>
without spaces in between. Second reason for exit status 1 is due to the container shut down. This can happen due to an Application failure or if the image is pointed to an invalid file.