Skip to content

Instantly share code, notes, and snippets.

@GeoffMahugu
Created June 5, 2020 18:38
Show Gist options
  • Save GeoffMahugu/b7f6813327bb1a1cbb560bcf37faaf1c to your computer and use it in GitHub Desktop.
Save GeoffMahugu/b7f6813327bb1a1cbb560bcf37faaf1c to your computer and use it in GitHub Desktop.
GitHub private repo access
Onve you settup a private repo, you will need an access token to access the image.
To login to GitHub repo, first create a file at and add your github password:
``nano ~/TOKEN.txt``
Then run this command, replacing USERNAME with your github username.
``$ cat ~/TOKEN.txt | docker login https://docker.pkg.github.com -u USERNAME --password-stdin
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment