Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 4

Cannot pull docker image from Github Package Registry by digest

First build, tag and push an image:

$ docker push docker.pkg.github.com/org/repo/image:latest
The push refers to repository [docker.pkg.github.com/org/repo/image]
056157488f63: Layer already exists 
556bd7954f59: Layer already exists 
bc8ba74a019b: Layer already exists 
9b33b8316bd2: Layer already exists 
c99984bb0f35: Layer already exists 
99add98f81ea: Layer already exists 
17cf356f41cc: Layer already exists 
4fd9fad7a009: Layer already exists 
c9581514d6d0: Layer already exists 
46ed3d879948: Layer already exists 
fbeeb71995b3: Layer already exists 
bb9e1c111e49: Layer already exists 
ac3ac7a153b5: Layer already exists 
3bfeb766f97b: Layer already exists 
ea1227feeccb: Layer already exists 
9cae1895156d: Layer already exists 
52dba9daa22c: Layer already exists 
78c1b9419976: Layer already exists 
latest: digest: sha256:2571e10a9946752074aa996358f1cded5bfd707f5517c17317a86e2986eb69c7 size: 4100

then pulling the same image by digest directly:

$ docker pull docker.pkg.github.com/org/repo/image:latest@sha256:2571e10a9946752074aa996358f1cded5bfd707f5517c17317a86e2986eb69c7
Error response from daemon: manifest for docker.pkg.github.com/org/repo/image@sha256:2571e10a9946752074aa996358f1cded5bfd707f5517c17317a86e2986eb69c7 not found: manifest unknown: Docker image reference image:sha256:2571e10a9946752074aa996358f1cded5bfd707f5517c17317a86e2986eb69c7 not found under repo "org/repo"

this works with docker.io as well as other private registries.

3 Replies
Community Manager
Message 2 of 4

Re: Cannot pull docker image from Github Package Registry by digest

HI @michaelbeaumont,

 

Thank you for being here! We don't support pulling an image by digest currently, only by tag.

 

Here is a link to our docs:

https://help.github.com/en/articles/configuring-docker-for-use-with-github-package-registry#installi...

 


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 2
Message 3 of 4

Re: Cannot pull docker image from Github Package Registry by digest


We don't support pulling an image by digest currently, only by tag.


Currently means there's plans to support it in the future? Do you have any updates?
Thanks

Copilot Lvl 2
Message 4 of 4

Re: Cannot pull docker image from Github Package Registry by digest

It would be great to be notified of when that would be available. Due to this, Google Cloud Run is currently not compatible with GitHub Packages. That forces us to use Google's container registry.