Create Token¶
Github¶
Authentication with a GitHub token is required to access images hosted on GitHub Packages (ghcr.io).
Click on Generate new token -> Generate new token (classic)
Please provide a descriptive name in the Note field and a suitable Expiration according to your policies.
You need these scopes: repo:public_repo and read:packages
Click on Generate Token
Export it using:
export GITHUB_API_TOKEN="ghp_...."
DockerHub¶
DockerHub currently imposes a soft rate limit on API requests. If you anticipate exceeding this limit, you will need to generate and export a personal access token as outlined below.
Go to https://app.docker.com/settings/personal-access-tokens
Click on Generate new Token
Please provide a descriptive name in the Access Token Description field and a suitable Expiration date according to your policies.
Click on Generate
Export it using:
export DOCKERHUB_API_TOKEN="dckr_pat_..."