Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.11 KB

ngc-api-key.md

File metadata and controls

31 lines (23 loc) · 1.11 KB

Authenticating local Docker with NGC

Generate an API key

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

Generate Personal Key

Docker login to NGC

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.