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

Olubisi Idris Ayinde
ยทOct 8, 2021ยท

1 min read

Subscribe to my newsletter and never miss my upcoming articles

Play 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

Impressum

Thank you for taking the time to read my blog. Please consider sponsoring or buying me a coffee if you've read some of my articles and want to show your support.

I'd also love to connect with you at Twitter | LinkedIn | GitHub

Check out these other amazing blogs! ๐Ÿ”ฅ

Didi's Blog | Catalin's Tech | Daily Dev Tips | Greenroots Blog | Lo-Victoria | Marko Denic