I am going through a unexpected error. I am always getting the error "Error response from daemon: unauthorized: authentication required" whenever I am trying to pull microsoft/mssql-server-windows:2017-latest
by using the blow command.
C:\Users\Administrator>docker pull microsoft/mssql-server-windows:2017-latest
Surprisingly I am able to login when I use docker login
, I am not sure what I am missing here. I am also able to login to https://hub.docker.com/ with the credentials I have. The problem exists only when I try pull.
C:\Users\Administrator>docker pull microsoft/mssql-server-windows:2017-latest
Please login prior to pull: Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: sibeeshvenu Password: Error response from daemon: unauthorized: authentication required
C:\Users\Administrator>docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username: sibeeshvenu Password: Login Succeeded
C:\Users\Administrator>docker pull microsoft/mssql-server-windows:2017-latest
Please login prior to pull: Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one. Username (sibeeshvenu): sibeeshvenu Password: Error response from daemon: unauthorized: authentication required
C:\Users\Administrator>
I found out the reason. It was the problem with the repository name. I searched for
mmsql
in the hub.docker, there I could not find any repositories with the namemicrosoft/mssql-server-windows:2017-latest
and I selectedmssql-server-windows-express
and run the pull command as below.docker pull microsoft/mssql-server-windows-express
After I enter my credentials it was pulling the repository as expected. It seems like we get this authorize error when the repository name is invalid.