GitHub Container Registry#

GitHub Container Registry provides a container registry for hosting Docker container images within your personal or organizational GitHub account. The container registry serves as a public-facing package source providing self-managed docker images.

Register Container Registry#

Obtain the Container Registry Information with the following steps:

  1. To authenticate, you’ll need to generate a GitHub personal access token (PAT). When generating the personal access token, ensure that you select a minimum of the following scopes:

  • read:packages

  • write:packages: If you want to upload the package to login_server, please provide the necessary permissions.

  1. Make sure that you note down one of the passwords shown on the screen.

  2. Define the following:

  • login_server: ghcr.io/<NAMESPACE>

  • username: GitHub username

  • password: GitHub PAT

Note

Replace NAMESPACE with the name of the personal account or organization to which you want the image to be scoped.

  1. Proceed to CLI command to register the container registry.