GitHub Container Registry

Page content

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry

TL;DR

  1. Get an acccces token (Personal Access Token)
    • https://github.com/settings/tokens/new
    • The only permission required in this post is write:packages.
    • From GitHub point of view, a container in Container Registry is a package.
    • In this post ghp_abcdefghijklMNOpqrstuvwxyz0123456789.
  2. Login to the GitHub Container registry ghcr.io.
    export CR_PAT=ghp_abcdefghijklMNOpqrstuvwxyz0123456789
    echo $CR_PAT | docker login ghcr.io -u atlex00 --password-stdin
    
  3. docker tag {{ my_local_image_id }} ghcr.io/atlex00/my-test
  4. docker push ghcr.io/atlex00/my-test

How to delete

https://docs.github.com/en/packages/learn-github-packages/deleting-and-restoring-a-package