-
Notifications
You must be signed in to change notification settings - Fork 297
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
Preheat can't process images from private project correctly #769
Comments
@likunbyl Can you provide a complete log of the manager? |
[GIN] 2021/10/28 - 10:08:38 | 200 | 98.245µs | 10.218.2.25 | GET "/healthy/" |
@gaius-qi these logs are from gin.log, core.log has nothing need attention. Is this enough? |
I use |
I set the same project to public, the preheat works well. so how can I get the private project preheated? or how can I get the authorize info to the registry? |
@gaius-qi Maybe we need support with image credential ? |
Dragonfly 1.0 preheat is done in harbor, so the |
Any update about this issue? @yxxhero |
Any update about this issue? @jim3ma |
Any update about this issue? @gaius-qi |
@likunbyl I will try to see this issue. Thanks very much. |
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "Z29vZ2xlaW1hZ2VzOnl4eDkzMDyxOA==" username:password base64 encode
}
}
}
3.拿第二步的token去获取对应的manifest即可 |
Use library parsing layer to support manifests in different version, refer to #1204 |
@likunbyl I will do this in this weekend. |
i have the same problem. I try to set Authorization header in args, but it doesn't work. |
这第二步,在最新的 release v2.1.15中仍未修复,https://github.com/dragonflyoss/Dragonfly2/blob/e847992c90a3143f8b02149f2d85f0b0ae019040/manager/job/preheat.go#L267 针对如阿里的私仓,401后(www-authenticate)转发到 auth服务的请求需要带上 basic token 才能获取到正确的 bearer token!! docker contianerd pull |
Bug report:
I have a private project in the registry, and want to preheat some images:
At the same time, from manager logs I get the error report:
It seems that the preheat api can't handle private projects correctly.
Expected behavior:
Preheat can handle private projects rightly.
How to reproduce it:
Deploy dragonfly 2.0.1 with helm chart, then preheat some images from private projects.
Environment:
uname -a
): 3.10.0-1160.31.1.el7.x86_64The text was updated successfully, but these errors were encountered: