NGC Authentication in CI issue

Recently the NGC/Docker interface changed. Previously we could pull Docker images from NGC without authentication; now our CI pipeline fails with an authentication error when running:

docker pull nvcr.io/nvidia/base/ubuntu:22.04_20240212
Error response from daemon: unauthorized: <html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx/1.22.1</center>
</body>
</html>

Because our CI environment cannot provide interactive user input, the documented approach of generating an API key and running:

docker login --username “$oauthtoken” --password “” nvcr.io

still prompts for username and password and cannot complete. How is one supposed to authenticate and pull NGC Docker images in a non-interactive CI pipeline?

Did you try something like this.

docker login --username “$oauthtoken” --password “<Your API Key>” nvcr.io

Yes that’s the first thing I tried and tried it again and still asks for login.