Why Do I Get Exit Status: 1, While Pushing Image To DockerHub?


  • Harness Continuous Integration


  • Infrastructure: Harness Saas

  • OS: Linux, Windows, Mac


I was working on a build pipeline and while pushing the image to DockerHub, the pipeline failed with error, exit status 1.


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.