Connection reset by peer Error of docker image while creating and pushing to hub

I am getting error while trying to create docker image and push to docker hub of my spring boot application.I am using windows 7 machine.

D:\demo>gradlew jib

Task :jib
Containerizing application to nithin4325/my-java-image…
Container entrypoint set to [java, -cp, /app/resources:/app/classes:/app/libs/*,
Executing tasks:
[=========================== ] 90.0% complete
building image to registry
Task :jib FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:jib’. Connec
tion reset by peer: socket write error