Home > Software engineering >  Unable to pull image from ghcr
Unable to pull image from ghcr

Time:12-02

For two days now I can't pull any image from the github container registry. This happens in both public and private images. I have tried with both cmd and windows terminal without success. From the docker hub, however, I pull normally.

The command I use is this: docker pull ghcr.io/someorg/someimage:sometag

and the error i get is this:

Error response from daemon: Head "https://ghcr.io/v2/someorg/someimage/manifests/sometag": denied: denied

It just says "denied" without explaining "why"... All I found after a lot of searching was an issue on github which says it was a platform issue which has been resolved.

CodePudding user response:

Since the images you are trying to pull are public and you get that error, it is safe to assume that you are logged in with an access token that no longer exists (because you probably deleted it or it expired).

Given this, you have to remove login credentials for ghcr.io using the following command:

docker logout ghcr.io

and either log in again with an existing access token or don't log in at all.

The pull command should then work.

  • Related