When to use it
You should use the GitHub container registry if:- one or more components of your stack need to pull or push container images.
- you’re using GitHub for your projects. If you’re not using GitHub, take a look at the other container registry flavors.
How to deploy it
The GitHub container registry is enabled by default when you create a GitHub account.How to find the registry URI
The GitHub container registry URI should have the following format:- Use the GitHub user or organization name to fill the template
ghcr.io/<USER_OR_ORGANIZATION_NAME>
and get your URI.
How to use it
To use the GitHub container registry, we need:- Docker installed and running.
- The registry URI. Check out the previous section on the URI format and how to get the URI for your registry.
- Our Docker client configured, so it can pull and push images. Follow this guide to create a personal access token and login to the container registry.