12

I begin to use NVIDIA GPU CLOUD Deep Learning platform. I try to pull in the console (Command Prompt):

docker pull nvcr.io/nvidia/pytorch:17.10

and get the message:

Error response from daemon: Get https://nvcr.io/v2/: unauthorized: authentication required

What is my fault?

1
  • Hi Roman, I ran into similar issue. Does your docker work for the hello-world from docker hub? I had login issues there too. I set my docker DNS now to local LAN ip 192.168.178.1 in my case. Also I logged out(!) of docker console and successfully logged in again (using docker username). I am once again downloading containers from NVIDIA/NGC, so far so good...
    – user5248982
    Mar 24, 2019 at 11:36

3 Answers 3

16

This error is an indication that the user is not authorized via login and API key. It is necessary to authorize in the console:

docker login nvcr.io

Username: $oauthtoken
Password: <Your Key>

You are not going to look for a special Username. $oauthtoken is the username.

3
  • 3
    Why would anyone set such a misleading username $oauthtoken? I wish I found this answer earlier and saved 20 min instead of bruteforcing login options
    – Oleg O
    Feb 17, 2022 at 11:53
  • 1
    @Oleg, who knows? I would imagine a developer who wrote the first that he/she had in mind and went on :-)
    – Roman
    Feb 17, 2022 at 14:56
  • 1
    Leaving this URL here for others: docs.nvidia.com/launchpad/ai/base-command-coe/latest/…
    – Cypher
    Feb 27, 2023 at 13:23
1

docker login --username "$oauthtoken" --password "{REDACTED}" nvcr.io

I failed the above command, since it is pain to type password

4
  • 1
    Can you please explain your answer more. How does this solve the OP's problem?
    – Kingsley
    Oct 7, 2018 at 22:53
  • Agree with Ming, this is the only way how you could ever enter the API key. Trouble is, I get an error: "Error response from daemon: Get nvcr.io/v2: net/http: request canceled while waiting fro connection Client.Time exceeded while awaiting header" or is it me again lacking some understanding?
    – user5248982
    Mar 24, 2019 at 8:42
  • For me "docker login nvcr.io" was giving me the error: "Error response from daemon: Get nvcr.io/v2: unauthorized: authentication required". But trying to login with this method worked for me somehow. For anyone who may have the same problem like me.
    – minhaj
    Apr 2, 2020 at 18:35
  • I got same response?? Error response from daemon: Get nvcr.io/v2: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Mar 7, 2022 at 12:30
0

When run 'docker login', you just input '$oauthtoken' as your name. Not the nickname of your nvidia.NGC.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.