How to solve requested access to the resource is denied on Dockerhub

How to solve requested access to the resource is denied on Dockerhub

Docker Hub is a popular platform for sharing and distributing container images. It allows developers to easily access and deploy software containers. However, 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

  1. Log in to the Docker Hub account in the command line
docker login -u wise4rmgod
  1. Tag your image build
docker tag quotes:latest wise4rmgod/quotes:v2

wise4rmgod: Docker hub username

quotes:v2 : Dockerhub public repository with a tag name

  1. View image locally via the Docker Desktop

  1. Pushed the image to your private docker repository
docker push wise4rmgod/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

The Dockerhub repository:

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.