Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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

66%
+2 −0
Q&A 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 ...

2 answers  ·  posted 6mo ago by FractionalRadix‭  ·  last activity 5mo ago by Alexei‭

Question docker gitlab
#1: Initial revision by user avatar FractionalRadix‭ · 2024-05-14T12:02:28Z (6 months ago)
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!)