Resolving requested access to the resource is denied on Dockerhub
Martin Kobimbo
Posted on January 20, 2024
Occasionally, you might encounter an error message stating that Requested access to the resource is denied when attempting to push images on Docker Hub.
In this article, I will provide steps to resolve it.
Solution
- Log in to the Docker Hub account in the command line.
docker login -u mkobi
- Tag your image build
docker tag quotes:latest mkobi/quotes:v2
View image locally via the Docker Desktop
Push the image to your private docker repository
docker push mkobi/quotes:v2
The output is similar to this:
The push refers to repository [docker.io/wise4rmgod/quotes]
73ba38394181: Pushed
47f6f066faff: Pushed
8e09802f4e96: Pushed
88bb24ab4cf4: Pushed
7355a3354412: Pushed
23350eaaee74: Pushed
df8e43203da9: Pushed
92a6bff90f79: Pushed
26cbea5cba74: Pushed
v2: digest: sha256:78ad6fa8b3091a3d59a0a66bea3885d9c14075f369e48e57b92ef86ae5789385 size: 2204
Encountering the Requested access to the resource is denied error on Docker Hub can be frustrating, but by following the steps outlined in this article, you can identify and resolve the cause.
💖 💪 🙅 🚩
Martin Kobimbo
Posted on January 20, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.