Robert blogs what learned today
Authenticate to ghcr.io (Github Container Registry)
Today I Learned: authenticate to ghcr.io registry
In order to pull docker images from private repos you need to authenticate to docker registry first.
- Create PAT (Github’s Personal Access Token) - classic
Create classic token - https://github.com/settings/tokens
Token scope just for pulling images:
- read:packages
- Export token
export CR_PAT=YOUR_TOKEN
- Authenticate
$ echo $CR_PAT | docker login ghcr.io -u USERNAME --password-stdin
> Login Succeeded
Links: