Questions tagged [github-container-registry]

Gidhub Container Registry (or ghcr.io).

You can store and manage Docker and OCI images in the Container registry, which uses the package namespace https://ghcr.io.

GitHub Packages is available with GitHub Free, GitHub Pro, GitHub Free for organizations, GitHub Team, GitHub Enterprise Cloud, GitHub Enterprise Server, and GitHub AE.

GitHub Packages is not available for private repositories owned by accounts using legacy per-repository plans. Also, accounts using legacy per-repository plans cannot access the Container registry since these accounts are billed by repository.

About Container registry support

The Container registry currently supports the following container image formats:

  • Docker Image Manifest V2, Schema 2
  • Open Container Initiative (OCI) Specifications

When installing or publishing a Docker image, the Container registry supports foreign layers, such as Windows images.

21 questions
10
votes
1 answer

How to see (not download) docker image from ghcr.io

I am publishing docker images to GitHub container registry (ghcr.io). The process of doing that: Build component. Build docker image which include component. Upload docker image to ghcr.io. Deploy docker image. Run integration tests on docker…
jactor-rises
  • 2,395
  • 2
  • 22
  • 44
9
votes
1 answer

Adding ghcr (Github Docker Regustry) to Synology docker results in "Registry returned bad result"

When trying to add the Github Registry to Synology Docker, I always get a prompt saying "Registry returned bad result". The URL I try to connect to is: https://ghcr.io
MrMaxM
  • 91
  • 1
  • 2
8
votes
2 answers

Unable to pull image from GitHub Container Registry (GHCR)

For the past two days, I haven't been able to pull any images from the GitHub Container Registry (GHCR). This issue occurs with both public and private images. I have tried using both CMD and Windows Terminal, but without success. However, I am able…
5
votes
3 answers

How to list all images from an account in GitHub Container Registry?

I want to know what images are uploaded to a specific owner in GitHub Container Registry. Containers are referred like this: https://ghcr.io/OWNER/:
dsimog01
  • 75
  • 1
  • 5
3
votes
1 answer

Pushing to GitHub Container Registry: unauthorized: unauthenticated: User cannot be authenticated with the token provided

When I try: docker push ghcr.io/username/imagename:latest as per GitHub docs, I see unauthorised: unauthenticated: User cannot be authenticated with the token provided. How do I push the image to ghcr?
stevec
  • 41,291
  • 27
  • 223
  • 311
3
votes
2 answers

Unable to pull public image from Github Container Registry (GHCR)

I have pushed an image to Github Container Registry (GHCR) and made it public. When I try to pull it, I get an error (I've already done docker login). docker pull ghcr.io/username/reponame:master Error I receive: Error response from daemon: Head…
3
votes
0 answers

How to log into Github Container Registy using Github Actions

I am trying to write a GitHub actions script to automatically build a docker image, and then push it into the GitHub Container Registry when new code is checked in to the main branch. This is the code that I'm using to try to log into the container…
3
votes
0 answers

Not all Docker Images are showing on GitHub container registry

I can not see docker images on the GitHub container repository (https://github.com/orgs/{OWNER}/packages) for non-existing repositories. I am talking about GitHub container registry How to reproduce If you create repository repository-A on GitHub…
sbakic
  • 33
  • 5
3
votes
0 answers

Working with Jenkins and GHCR; can a github app authenticate to push a docker image?

We are trying to setup a workflow using Jenkins to build docker images using code that is onto github and push it back onto it. We have setup a github app for jenkins to use to access the code repository/branches/PR, but it seems although i have…
2
votes
1 answer

github `registry_package` event doesn’t trigger

I managed to create two actions on 1 private repository: The first one builds the image and push the docker image to GitHub Container Registry The second one needs to be triggered when newer image is published to the GitHub container registry and…
2
votes
1 answer

Why GitHub action fails to push the docker image?

I have a lot of GitHub actions that push built docker images to the GitHub Container Repository. Basically, what I do is to have two steps in my job: - name: Log in to GitHub Container Repository run: | echo "${{…
1
vote
1 answer

How can you authenticate to the GitHub Container Registry using a GitHub App?

According to the GitHub docs, you can only authenticate to the GitHub Container Registry via a personal access token or via the GITHUB_TOKEN (only available in GitHub actions). The GITHUB_TOKEN is an installation access token of a GitHub App. When…
1
vote
1 answer

Pulling and pushing images on Github actions fails

I'm following the testdriven.io course Test-Driven Development with FastAPI and Docker I'm at the end of the Continuous integration chapter, I just pushed a pull request with all the GitHub actions, and it fails. My errors from GitHub actions: Here…
1
vote
1 answer

Unable to pull private docker image from github container registry

I built and pushed a image from the dockerfile using github actions, here is the worflow file name: Create and publish a Docker image on: push: branches: ['temp'] env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: …
1
vote
1 answer

Docker image digest is different to the resulting digest once pushed to the Github Container Registry

I have a CI pipeline on Github Actions that builds and pushes a docker image, then, I have a seperate repository that has an action that I trigget from the command line, that takes as an arg a docker image which then applies it to a Kustomize…
1
2