# Docker Error : Error response from daemon: unauthorized:

**URL:** <https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087>\
**Category:** Visual AI Agent\
**Created:** [October 8, 2024, 9:14am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087 "2024-10-08T09:14:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeetthakare241093](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abhijeetthakare241093](https://forums.developer.nvidia.com/u/abhijeetthakare241093)\
**Post date:** [October 8, 2024, 9:14am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/1 "2024-10-08T09:14:00Z")

</div>

Hello Sir,

Followed your pdf [https://docs.nvidia.com/via/via\_2.0\_dp\_user\_guide.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](http://nvcr.io) -u ‘$oauthtoken’ -p \<NGC\_API\_KEY\>

creapple@creapple-ubuntu:~$ docker pull [nvcr.io/metropolis/via-dp/via-engine:2.0-dp](http://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](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](http://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

---

<div class="post-metadata">

**Author:** ![abhijeetthakare241093](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abhijeetthakare241093](https://forums.developer.nvidia.com/u/abhijeetthakare241093)\
**Post date:** [October 8, 2024, 9:41am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/2 "2024-10-08T09:41:45Z")

</div>

±--------------------------------------------------------------------------------------+  
| 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 |  
±--------------------------------------------------------------------------------------+

---

<div class="post-metadata">

**Author:** ![yuweiw](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yuweiw/32/101255_2.png) [@yuweiw](https://forums.developer.nvidia.com/u/yuweiw)\
**Post date:** [October 9, 2024, 1:13am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/4 "2024-10-09T01:13:43Z")

</div>

> [@abhijeetthakare241093](#):
>
> docker login [nvcr.io](http://nvcr.io) -u ‘$oauthtoken’ -p \<NGC\_API\_KEY\>

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?

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

```

---

<div class="post-metadata">

**Author:** ![abhijeetthakare241093](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abhijeetthakare241093](https://forums.developer.nvidia.com/u/abhijeetthakare241093)\
**Post date:** [October 10, 2024, 3:13am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/6 "2024-10-10T03:13:33Z")

</div>

(base) creapple@creapple-ubuntu:~$ echo “nvapi-Nh0mhyxqpn5xbkhmhNu00\_TB1cVDyq\_5M31yexqk\_RsVoG8Rj2JGaLQVifvUAgzn” | sudo docker login [nvcr.io](http://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

> **[docker login](https://docs.docker.com/reference/cli/docker/login/)**

Login Succeeded  
(base) creapple@creapple-ubuntu:~$  
(base) creapple@creapple-ubuntu:~$ sudo docker pull [nvcr.io/metropolis/via-dp/via-engine:2.0-dp](http://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](https://nvcr.io/v2/metropolis/via-dp/via-engine/manifests/2.0-dp)”: denied: {“errors”: [{“code”: “DENIED”, “message”: “Access Denied”}]}

---

<div class="post-metadata">

**Author:** ![shaunakg\_nvidia](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/shaunakg_nvidia/32/14047_2.png) [@shaunakg\_nvidia](https://forums.developer.nvidia.com/u/shaunakg_nvidia)\
**Post date:** [October 10, 2024, 4:06am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/7 "2024-10-10T04:06:45Z")

</div>

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](https://docs.nvidia.com/ngc/gpu-cloud/ngc-user-guide/index.html#generating-api-key)

And then try pulling the image.

---

<div class="post-metadata">

**Author:** ![abhijeetthakare241093](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@abhijeetthakare241093](https://forums.developer.nvidia.com/u/abhijeetthakare241093)\
**Post date:** [October 10, 2024, 4:48am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/8 "2024-10-10T04:48:52Z")

</div>

It’s working fine. Thank you

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [October 24, 2024, 4:49am UTC](https://forums.developer.nvidia.com/t/docker-error-error-response-from-daemon-unauthorized/309087/9 "2024-10-24T04:49:12Z")

</div>

Closed on October 24, 2024, 4:49am UTC

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