rpardini / docker-registry-proxy

An HTTPS Proxy for Docker providing centralized configuration and caching of any registry (quay.io, DockerHub, k8s.gcr.io)
Apache License 2.0
904 stars 171 forks source link

got error on 302 redirect #164

Open czapajew opened 3 days ago

czapajew commented 3 days ago

I've got this error on redirect



2024-10-07T11:40:12.658283721Z {"access_time":"07/Oct/2024:11:40:12 +0000","upstream_cache_status":"","method":"GET","uri":"/v2/pause/manifests/3.2","request_type":"manifest-secondary","status":"500","bytes_sent":"177","upstream_response_time":"","host":"k8s.gcr.io","proxy_host":"","upstream":""}

2024-10-07T11:40:12.658381759Z 2024/10/07 11:40:12 [error] 118#118: *33671357 invalid URL prefix in "", client: 127.0.0.1, server: _, request: "GET /v2/pause/manifests/3.2 HTTP/1.1", host: "k8s.gcr.io"```
czapajew commented 3 days ago

Need to add repo url into REGISTRIES environment variable.

czapajew commented 3 days ago

I've added registry.k8s.io to REGISTRIES environment variable but still same error.