content

I'm trying to pull the wikijs docker image locally to test it, but it doesn't work for some reason.

$ sudo docker compose up
[+] up 2/2
 ! Image postgres:15-alpine      Interrupted                                        0.5s
 ✘ Image ghcr.io/requarks/wiki:2 Error Head "https://ghcr.io/v2/requarks/w...       0.5s
Error response from daemon: Head "https://ghcr.io/v2/requarks/wiki/manifests/2": denied: denied

Looking up "Error response from daemon: Head denied: denied", I find this StackOverflow post:

Andreas Violaris:

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.

A commenter points out that if you use sudo with docker, you need to use sudo docker logout ghcr.io.

After I run sudo docker logout ghcr.io, the pull works.

meta

created:

backlinks: Cannot pull public Docker images

commit: 19a10892