content

Cannot pull public Docker images

When pulling a public docker image, you may get the following error: 1

Error response from daemon: Head "https://ghcr.io/v2/requarks/wiki/manifests/2": denied: denied

This happens because you are logged in with an access token that no longer exists. You have to remove login credentials for the site you are trying to pull from by using the following command. For example, for ghcr.io: 1

docker logout ghcr.io

Or, if you use sudo with Docker: 1

sudo docker logout ghcr.io

Now, pulling the image should work (logging back in is not necessary for pulling a public image). 1

meta

tags: docker

created:

commit: 19a10892