-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Container registry (docker) ask credential for pull #19583
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
Comments
I am experiencing the same issue. Might be worth to ping @KN4CK3R as he's the author. Currently, I would expect all packages to be public (as they're visible in the GUI), but the addition of private packages in the future would be useful nevertheless. |
That's normal behaviour even for public packages. The spec says:
It works like this if you use the official docker registry too:
If you really login you need to pass BasicAuth to the the |
It 's not quite like that - when I do When i pull public image from my own gitea - it says |
Thank you for clarification. Looks like the official Docker client does not like multiple |
Hi! I updated now my gitea to |
Why is the server returning a 401 for a public container image though? A 401 should only be returned when trying to access a private container image, though in that case a 404 might be better to avoid leaking private repos through enumeration. |
I can't reproduce the problem:
You access the packages within a session. The docker client automaticly creates this session. May be used for billing, rate limiting and so on. |
You can try it on this image https://mxfox.ru/MXFOX/-/packages/container/fox-web-basic/php-7.4
|
Can you show the logged requests? |
|
The problem occurs with packages in organziations. Please test with #19742. |
Checked on [1.17.0+dev-594-gce5251476] - it seems to be OK. |
Description
Hello! I have public organization with public repo. In this org i have docker (containes) package. If i do docker login - i can pull it, if if don't - Error response from daemon: Head "XXXXXXXX": no basic auth credentials. But i can see this package's page in gitea without any auth.
Gitea Version
1.17.0+dev-511-g71bafa026
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Using docker image: gitea/gitea:dev
Database
MySQL
The text was updated successfully, but these errors were encountered: