NGC contains many public images, models, and datasets which can be pulled immediately without authentication. To push and pull custom images to/from the private registry you will need to authenticate with NGC and generate a private key.
To create a private key, go to https://org.ngc.nvidia.com/setup/personal-keys.
When creating an NGC API key, ensure that all of the following are selected from the "Services Included" dropdown.
- AI Foundation Models and Endpoints
- NGC Catalog
- Private Registry
To pull the NIM container image from NGC, use your API key to log in to the NGC registry by entering the following command and following the prompts:
$ docker login nvcr.io
Username: $oauthtoken
Password: <Your Key>
For the username, enter '$oauthtoken' exactly as shown. It is a special authentication key for all users.