The below steps will allow Docker to pull images from the private cdcent GitHub Container Registry.
-
Generate a GitHub Personal Access Token (Classic): You must create a "Classic" PAT.
- Go to Developer Settings -> Personal access tokens -> Tokens (classic).
- Generate a new token.
- Scopes: Select
read:packages. - Click "Generate token"
- Copy the generated token
- If your access to the NEDSSDB repo is through membership in the cdcent GitHub org, you will need to authorize your token to access the organization. If you have access to the repo as an outside collaborator, this is not necessary.
-
Docker Login: To allow Docker to use the generated token to authenticate, use one of the two options below.
# Using the token directly (paste when prompted for a password) docker login ghcr.io -u <YOUR_GITHUB_USERNAME>
# OR piping the token for security (if saved in a file or variable) cat my_pat.txt | docker login ghcr.io -u <YOUR_GITHUB_USERNAME> --password-stdin
-
Validation (Optional): Once the Docker Login is complete, the NEDSSDB image can be pulled using the following command
docker pull --platform linux/amd64 ghcr.io/cdcent/nedssdb:latest