Store and manage Docker and OCI images in your GitHub account or organization
servicefree
GitHub Container Registry (ghcr.io) is the container registry in GitHub Packages: it stores Docker and OCI images under a personal account or organization, can link each image to a repository and inherit its permissions, and lets anyone pull public images anonymously. GitHub Actions workflows push to it with the built-in GITHUB_TOKEN; elsewhere you sign in with a personal access token (classic). Container image storage and bandwidth are currently free, and GitHub says it will give at least a month's notice before that changes.
Problems it solves
- host our Docker images next to our code so CI can push them without another account
- a free place to publish public container images that anyone can pull without logging in
- private container images whose access follows our GitHub repository permissions
- push images from GitHub Actions without storing registry credentials as secrets
- multi-architecture images for amd64 and arm64 in one tag
- show a description, licence and source repository on our container image's page
- let a workflow in one repository pull private images published by another repository
- a container registry with no storage or bandwidth bill for our images
- container images for a GitHub organization with access granted per team or per repository
- store Windows container images with foreign layers
Features
- Docker Image Manifest V2 Schema 2 and OCI images
- anonymous pulls of public images
- images linked to a repository, inheriting its permissions or with granular ones
- GITHUB_TOKEN authentication in GitHub Actions
- personal access token (classic) authentication with docker login ghcr.io
- foreign layers such as Windows images
- image labels and annotations shown on the package page, including descriptions for multi-arch images
- free container image storage and bandwidth (currently)
Limitations
- No fine-grained personal access tokens: GitHub Packages accepts only classic tokens, or GITHUB_TOKEN in Actions1
Capabilities
| Has an API | plan not known |
|---|
Alternatives
The same job
These do what GitHub Container Registry does.
- Docker Hub The container registry for storing, managing and sharing Docker images
- Quay The open source container-native image registry built for security, robustness and speed, and automation.
- Amazon ECR Easily store, share, and deploy your container software anywhere
- Azure Container Registry Build, store, secure, and replicate container images and artifacts
- Harbor An open source trusted cloud native registry project that stores, signs, and scans content
- DigitalOcean Container Registry A managed registry made for developers
