hellonode
hellonode copied to clipboard
Docker push
Hi, In the final stage I get this error:
` [getintodevops-hellonode] Running shell script
- docker push registry.hub.docker.com/getintodevops/hellonode:21 The push refers to a repository [registry.hub.docker.com/getintodevops/hellonode] cba63da76181: Preparing 6c433c4837ac: Preparing a6e26591f7fe: Preparing 2895be281ac1: Preparing ab90d83fa34a: Preparing 8ee318e54723: Preparing e6695624484e: Preparing da59b99bbd3b: Preparing 5616a6292c16: Preparing f3ed6cb59ab0: Preparing 654f45ecb7e3: Preparing 2c40c66f7667: Preparing 8ee318e54723: Waiting e6695624484e: Waiting da59b99bbd3b: Waiting 5616a6292c16: Waiting f3ed6cb59ab0: Waiting 654f45ecb7e3: Waiting 2c40c66f7667: Waiting denied: requested access to the resource is denied script returned exit code 1 `
Hi,
Even i have the same problem. How to push the image to docker hub ?
This error states that you do not have push rights to the getintodevops/hellonode docker repository. Make a dockeraccount like "dockeracc" and change getintodevops into dockeracc. The jenkinsfile should look as following:
stage('Build image') {
/* This builds the actual image; synonymous to
* docker build on the command line */
app = docker.build("dockeracc/hellonode")
}