Docker Error : Error response from daemon: unauthorized:

Hello Sir,

Followed your pdf https://docs.nvidia.com/via/via_2.0_dp_user_guide.pdf but getting error after

Login to the NVIDIA Container Repository using your NGC API Key
docker login nvcr.io -u ‘$oauthtoken’ -p <NGC_API_KEY>

creapple@creapple-ubuntu:~$ docker pull nvcr.io/metropolis/via-dp/via-engine:2.0-dp
Error response from daemon: Head “https://nvcr.io/v2/metropolis/via-dp/via-engine/manifests/2.0-dp”: denied: {“errors”: [{“code”: “DENIED”, “message”: “Access Denied”}]}

creapple@creapple-ubuntu:~$ sudo docker pull nvcr.io/metropolis/via-dp/via-engine:2.0-dp
[sudo] password for creapple:
Error response from daemon: unauthorized:

401 Authorization Required

401 Authorization Required


nginx/1.22.1

±--------------------------------------------------------------------------------------+
| NVIDIA-SMI 535.183.01 Driver Version: 535.183.01 CUDA Version: 12.2 |
|-----------------------------------------±---------------------±---------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA RTX A5000 Off | 00000000:01:00.0 On | Off |
| 30% 58C P2 67W / 230W | 22665MiB / 24564MiB | 0% Default |
| | | N/A |
±----------------------------------------±---------------------±---------------------+

±--------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 4491 G /usr/lib/xorg/Xorg 280MiB |
| 0 N/A N/A 4737 G /usr/bin/gnome-shell 90MiB |
| 0 N/A N/A 8198 G …irefox/4955/usr/lib/firefox/firefox 11MiB |
| 0 N/A N/A 8917 G …seed-version=20241006-180150.222000 79MiB |
| 0 N/A N/A 11511 C python 22186MiB |
±--------------------------------------------------------------------------------------+

Is there a prompt after you run this command, such as whether the command is successful, or reporting an error?
Could you try the command below?

docker login nvcr.io -u '$oauthtoken' -p <NGC_API_KEY>

(base) creapple@creapple-ubuntu:~$ echo “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” | sudo docker login nvcr.io -u ‘$oauthtoken’ --password-stdin

WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See

Login Succeeded
(base) creapple@creapple-ubuntu:~$
(base) creapple@creapple-ubuntu:~$ sudo docker pull nvcr.io/metropolis/via-dp/via-engine:2.0-dp
Error response from daemon: Head “https://nvcr.io/v2/metropolis/via-dp/via-engine/manifests/2.0-dp”: denied: {“errors”: [{“code”: “DENIED”, “message”: “Access Denied”}]}

Can you try using the “NGC API Key” instead of the “NVIDIA Personal Key” for logging in to the container registry? NGC User Guide - NVIDIA Docs

And then try pulling the image.

It’s working fine. Thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.