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

ยท

1 min read

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!!!

ย