# Docker Unauthorised

**URL:** <https://forums.developer.nvidia.com/t/docker-unauthorised/256939>\
**Category:** Jetson AGX Orin\
**Tags:** docker\
**Created:** [June 16, 2023, 5:45pm UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939 "2023-06-16T17:45:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex247](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alex247](https://forums.developer.nvidia.com/u/alex247)\
**Post date:** [June 16, 2023, 5:45pm UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939/1 "2023-06-16T17:45:34Z")

</div>

Our app checks if there is a docker image update on docker hub but we keep reaching the daily limit for checks. I asked docker about this and the said that happens when you are not authenticated. They said i can check with curl --head -H “Authorization: Bearer $TOKEN” [https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest](https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest)

It seems that when i do docker login on a jetson and enter the credentials, it says i logged in successfully but their check believes I am not authorised. I can pull and push fine from the jetson, it is just this issue with hitting my daily limit due to not being supposedly authorised. See screenshot.

Docker said this

“While integrating 3rd party apps with Docker and Docker Engine are both outside of our scope of support, I was able to find a few articles that seemed to imply you need to use ‘sudo docker login’ when logging in via Jetson. Give that a try in conjunction with the curl command I mentioned to see if it authenticates as intended. If not, I would recommend reaching out to Nvidia support for further troubleshooting.”

 ![image](https://global.discourse-cdn.com/nvidia/original/4X/b/d/2/bd24842809fe7209112c82e5a07bb6af61241e7a.png)

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [June 16, 2023, 10:07pm UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939/2 "2023-06-16T22:07:37Z")

</div>

> [@alex247](#):
>
> I was able to find a few articles that seemed to imply you need to use ‘sudo docker login’ when logging in via Jetson

@alex247 I believe that’s just because your user isn’t in the docker group, to which you can add them: [https://askubuntu.com/a/739861](https://askubuntu.com/a/739861)

I feel like the fact that you are able to push images (presumably to DockerHub) certainly means that you are authenticated? However - what if it’s the root user that’s authenticated (note the message about the credentials being stored under `/root/.docker`)

Does it work if you run curl with sudo too? Are you able to `echo $TOKEN` ?

I don’t see this as a Jetson-specific issue and if you had an x86 machine where your user wasn’t in the docker group, perhaps it may be reproducible there too? Regardless, I’d also like to query for image updates (or list of tags available) and would be interested in the commands you use for that.

---

<div class="post-metadata">

**Author:** ![alex247](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@alex247](https://forums.developer.nvidia.com/u/alex247)\
**Post date:** [June 17, 2023, 8:12am UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939/4 "2023-06-17T08:12:44Z")

</div>

i have now made sure docker can run without sudo and docker run hello-world works. I also tried to run the curl command without sudo. In both cases, their curl thing still says that I’m unauthorised. Typically we run docker commands with USER=aiserver at the beginning so I tried that but still it says I’m unathorised.

Just type echo $TOKEN? that didn’t print anything

---

<div class="post-metadata">

**Author:** ![dusty\_nv](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/dusty_nv/32/14043_2.png) [@dusty\_nv](https://forums.developer.nvidia.com/u/dusty_nv)\
**Post date:** [June 17, 2023, 2:15pm UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939/5 "2023-06-17T14:15:17Z")

</div>

> [@alex247](#):
>
> Just type echo $TOKEN? that didn’t print anything

I’m unfamiliar with DockerHub’s APIs, but it assume this is an environment variable that needs set to your API token?

---

<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:** [July 12, 2023, 5:03am UTC](https://forums.developer.nvidia.com/t/docker-unauthorised/256939/7 "2023-07-12T05:03:55Z")

</div>

Closed on July 12, 2023, 5:03am UTC

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