I am getting error pushing the docker image:
denied: requested access to the resource is denied
unauthorized: authentication required
script returned exit code 1
The Jenkinsfile stage:
stage('upload docker') {
steps {
sh "./upload_docker.sh"
}
}
In the upload_docker file:
docker push username/repo:3
I added the user to the docker group.
I added Jenkins to the docker group.
I added Jenkins to the user group and vice versa.
I changed the permission of the docker config file to allow all.