docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.86k stars 290 forks source link

unauthorized: authentication required error when attempting to push image #108

Closed kcturner123 closed 8 years ago

kcturner123 commented 8 years ago

I have been working through the tutorial for Docker for Windows and everything has worked perfectly until I tried to push the docker-whale image to my newly created repository. I found a number of older issues similar to this for Linux and Mac, but not for the Windows version.

Actual behavior

C:\Users\Kim\mydockerbuild>docker push kimdockertutorial/docker-whale The push refers to a repository [docker.io/kimdockertutorial/docker-whale] e4ab3a6c9931: Preparing 5f70bf18a086: Preparing d061ee1340ec: Preparing d511ed9e12e1: Preparing 091abc5148e4: Preparing b26122d57afa: Waiting 37ee47034d9b: Waiting 528c8710fd95: Waiting 1154ba695078: Waiting unauthorized: authentication required

Information

Diagnostic ID: 0932D0A0-6E49-41BA-8AC1-EF2AF558FE63/2016-09-27_12-55-56 image

dgageot commented 8 years ago

Hi @kcturner123 thank you for your report. I believe you need to login to the hub before you push: https://docs.docker.com/engine/getstarted/step_six/

kcturner123 commented 8 years ago

David,

Thanks for the response, but I had already logged in successfully before trying the push. The problem turned out to be that I didn’t understand the repository name and image tagging dependency. The instructions in the tutorial do not really explain it, but I found the information I needed in a different guide. I didn’t understand that the tag for the image had to be username/repository name. Once I properly tagged the image and used the correct parameters for the push, it was successful.

Cheers,

Kim

From: David Gageot [mailto:notifications@github.com] Sent: Thursday, September 29, 2016 6:49 AM To: docker/for-win for-win@noreply.github.com Cc: kcturner123 kcturner123@verizon.net; Mention mention@noreply.github.com Subject: Re: [docker/for-win] unauthorized: authentication required error when attempting to push image (#108)

Hi @kcturner123 https://github.com/kcturner123 thank you for your report. I believe you need to login to the hub before you push: https://docs.docker.com/engine/getstarted/step_six/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/108#issuecomment-250432901 , or mute the thread https://github.com/notifications/unsubscribe-auth/AMs7qfpr07n9Q4rIL7TKRzM10iIam-5kks5qu5eWgaJpZM4KH7t1 . https://github.com/notifications/beacon/AMs7qf2dC09_75VMetq5_fFuMjbNfksFks5qu5eWgaJpZM4KH7t1.gif

dgageot commented 8 years ago

@kcturner123 Happy that you managed to find a solution! Closing

friism commented 8 years ago

@kcturner123 Is this the guide that you were following? https://docs.docker.com/engine/getstarted/step_six/

kcturner123 commented 8 years ago

Yes, that was the tutorial that I was following. It wasn’t quite clear to me in that tutorial that I had to name the repository docker-whale for it to work. I found another guide on the web site that explained it in a different way that made it clear to me. I think a little more explanation in the tutorial of how repositories and tags are used or perhaps some links to more detailed explanations, would be helpful.

From: Michael Friis [mailto:notifications@github.com] Sent: Thursday, September 29, 2016 11:37 AM To: docker/for-win for-win@noreply.github.com Cc: kcturner123 kcturner123@verizon.net; Mention mention@noreply.github.com Subject: Re: [docker/for-win] unauthorized: authentication required error when attempting to push image (#108)

@kcturner123 https://github.com/kcturner123 Is this the guide that you were following? https://docs.docker.com/engine/getstarted/step_six/

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/108#issuecomment-250502894 , or mute the thread https://github.com/notifications/unsubscribe-auth/AMs7qb9PjU9bvjM0UHK2SLNO-IqfUm61ks5qu9scgaJpZM4KH7t1 . https://github.com/notifications/beacon/AMs7qcnwzMHGEoyI4XByoCMFMrIeLpBKks5qu9scgaJpZM4KH7t1.gif

docker-robott commented 4 years ago

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked