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
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.”
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.
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.