Skip to content

Accessing Github Container Registry

JayGhiya edited this page Sep 20, 2022 · 3 revisions

Creating a personal token on your system

export CR_PAT= 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

Make sure the above env is made permanent through .bashrc (linux) or .zshrc(mac).

Then run the following command to do docker login

echo $CR_PAT | docker login ghcr.io -u ghiya6548@gmail.com --password-stdin

Done! You should be able to access ghrc.io for reading/writing containers.

Clone this wiki locally