-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registry:3.0.0 failed with private s3 compatible bucket #4359
Comments
This is failing DNS lookup which has nothing to do with registry I'm afraid. You're gonna have to sort that out first. As an aside it's strange that registry is panicking when the DNS lookup fails, though 🤔 |
@milosgajdos Thanks for your super fast reply! |
The latest docs are here https://distribution.github.io/distribution/about/configuration/ |
I seem to find the issue: In registry 3.0.0-alpha, you have this commit which allows independent setting of "ForcePathStyle" even when the RegionEndpoint is set: In version 2 this was set to True by default when the RegionEndpoint Parameter was present: I have limited knowledge with s3 configurations, but since in my configuration the "forcepathstyle" option was not present, it went False and caused the errors. Thanks for your quick replies again and I think this issue can be closed. |
Awesome! I remember that PR and I completely forgot to think of that. Thanks, closing. |
Description
Hi,
I am testing the latest main branch since I would need the basic auth feature which is not supported by registry:2.8.3.
The registry was configured to use the pull-through cache mode.
I cloned the repo and built it. I modified the config to use s3 for storage, but it failed.
I will provide more details below, thanks!
Reproduce
docker run -it --rm --entrypoint cat distribution:3.0.0 /etc/docker/registry/config.yml > config.yml
to get the config.yml filedocker run -p 5005:5000 --restart=always -v $(pwd)/config.yml:/etc/docker/registry/config.yml distribution:3.0.0
. Then I got:Expected behavior
The registry should be running. When I did the same using registry:2.8.3 using the same s3-compatible bucket, the registry was actually running
registry version
registry version=3.0.0-alpha.1-155-ge0a54de7
Additional Info
No response
The text was updated successfully, but these errors were encountered: