How to fix Error response from daemon: pull access denied for your_username/your_repository
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.
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:
Now we can successfully
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.
See you next Friday in DevOpsFriday series. Take care!!!