Open AllenShen opened 1 month ago
@jim3ma
I met this issue as well.
have discusses this issue in dingding group ; when download the blob layer dragonfly receive an 302 response, golang http-client auto redirect to the new registry and got an 401 error; dragonfly need to reply this 302 response to docker, and docker will redownload the blob in another registry with token.
We will add an option to avoid redirect http in dragonfly.
Bug report:
When pulling image from lscr.io/linuxserver, like lscr.io/linuxserver/plex:latest or lscr.io/linuxserver/kasm:latest, error occured:
actually the image doesn't require authentication
we found out this image registry is a 'mirror' registry, requests to this registry will be moved(302) to ghcr.io, when we just run ‘docker pull ghcr.io/linuxserver/plex:latest’, it works. Seems like dragonfly doesn't support responses with http code 302 when reading blobs from registry.
Expected behavior:
pull image successfully
How to reproduce it:
docker pull lscr.io/linuxserver/plex:latest
Environment:
uname -a
): 6.5.0-35-generic