ciiiii / cloudflare-docker-proxy

A docker registry proxy run on cloudflare worker.
964 stars 1.78k forks source link

Unable to pull the official images anonymously #17

Closed 1574242600 closed 1 month ago

1574242600 commented 1 month ago

Description

When executing

docker pull docker.libcuda.so/hello-world

it returns

Using default tag: latest
Error response from daemon: pull access denied for docker.libcuda.so/hello-world, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Reason

When docker requests a token, the value of scope is repository:hello-world:pull. However, pulling the image requires scope to be repository:library/hello-world:pull.

Temporary solution

Add library/ or configure registry-mirrors parameter in daemon.json

docker pull docker.libcuda.so/library/hello-world

Related issues

11

ciiiii commented 1 month ago

This case should be fixed

➜ docker pull docker.libcuda.so/busybox
Using default tag: latest
latest: Pulling from busybox
Digest: sha256:9ae97d36d26566ff84e8893c64a6dc4fe8ca6d1144bf5b87b2b85a32def253c7
Status: Downloaded newer image for docker.libcuda.so/busybox:latest
docker.libcuda.so/busybox:latest