Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Recently I had to push a new Docker image to our GitLab registry. I have the Maintainer role on that project. I had created a new token and used it to log in to Docker. However, when trying ...
#1: Initial revision
Docker push fails with message "denied: requested access to the resource is denied"
Recently I had to push a new Docker image to our GitLab registry. * I have the Maintainer role on that project. * I had created a new token and used it to log in to Docker. However, when trying to build and push the image, I got the error message > denied: requested access to the resource is denied The output looked as follows: The push refers to repository [registry.gitlab.com/.../...] ae17b0564d98: Preparing 9ef3e4c4bfdc: Preparing 4504b43db9b6: Preparing 108bb35b89d0: Preparing 793f447bc25b: Preparing 397bd9b6f39e: Waiting 290cec21aafb: Waiting e7f8b07649a4: Waiting 109e67eff29c: Waiting 556c5fb0d91b: Waiting denied: requested access to the resource is denied Why can't I push my new Docker image to the GitLab registry? (I've found that there are many possible reasons for this error. I've found the solution for my case and will add it as an answer. If you have a different solution, please add it as an answer for future visitors!)