How to fix Error response from daemon: pull access denied for your_username/your_repository

How to fix Error response from daemon: pull access denied for your_username/your_repository

Subscribe to my newsletter and never miss my upcoming articles

Listen to this article

It's already Friday, and I'm delighted 😉 to see you here.

Another day of problem-solving, so we'll see how it goes.

When I tried to pull from Docker Hub, I ran into the same problem, and here's how I solved it after some digging.

Login

We'll need to log in or confirm that we're logged in to our Docker Hub account via the terminal, which we can do with the command below.

The -u option allows us to pass our user name.

docker login -u your_user_name

To see options for logging in :

docker login --help

A prompt will request for our password for DockerHub similar to what we have in the screenshot below:

docker login_result.png

Now we can successfully push and pull repository,

Using the command below to push repository to our docker hub

docker push your_username/your_repository

to pull, we will use the command below:

docker pull your_username/your_repository

Yeah, that's all 😉😊 you just fixed that error.

I'd love to connect via Twitter | LinkedIn | GitHub

See you next Friday in DevOpsFriday series. Take care!!!

 
Share this