Skip to content
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 镜像仓库需要支持v2协议才可集成 #169

Open
lan-teacher opened this issue Aug 24, 2022 · 8 comments · Fixed by #174
Open

registry 镜像仓库需要支持v2协议才可集成 #169

lan-teacher opened this issue Aug 24, 2022 · 8 comments · Fixed by #174
Assignees
Labels
💊 bug Something isn't working documentation Improvements or additions to documentation

Comments

@lan-teacher
Copy link

registry一直提示不支持V2版本访问,应该使用哪个版本的registry镜像啊

@colynn
Copy link
Member

colynn commented Aug 24, 2022

你具体的环境信息麻烦反馈下,如何复现

@lan-teacher
Copy link
Author

启动这个docker,配置nginx域名,在服务集成里添加registry就出来了
docker run -p 5000:5000
--restart=always
--name registry
-v /var/lib/registry:/var/lib/registry
-v /var/lib/registry_auth/:/auth/
-e "REGISTRY_AUTH=htpasswd"
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm"
-e "REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd"
-d registry

@colynn colynn changed the title registry registry 镜像仓库需要支持v2协议才可集成 Aug 24, 2022
@colynn colynn added the documentation Improvements or additions to documentation label Aug 24, 2022
@colynn
Copy link
Member

colynn commented Aug 24, 2022

@lan-teacher 你可以启动 registry:2 v2版本来规避这个问题,

目前集成的registry已经不支持v1协议了 (https://github.com/go-atomci/atomci/blob/master/internal/core/settings/registryhub.go#L22)

@lan-teacher
Copy link
Author

我换了镜像,浏览器上已经可以使用v2了。atomci上还是一样的报错

@sampsonye
Copy link
Collaborator

image
image

初步排查,你采用的是Basic认证模式,我们项目要求的是Bearer认证

后续我看看怎么兼容

@colynn colynn added 💊 bug Something isn't working and removed status: needs reproduce labels Sep 8, 2022
@colynn colynn modified the milestone: 1.6.0 Sep 8, 2022
@lan-teacher
Copy link
Author

已经用了前后端一样的镜像,还是报一样的错,
Uploading WX20221024-143511@2x.png…
WechatIMG28

@lan-teacher
Copy link
Author

补充:
docker

@colynn colynn reopened this Oct 26, 2022
@colynn
Copy link
Member

colynn commented Oct 26, 2022

@lan-teacher 请确认下 registry 的htpasswd的生成方式, 还有nginx的代理配置方式,

测试未经过nginx的docker registry:v2 是可以正常集成的

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💊 bug Something isn't working documentation Improvements or additions to documentation
Projects
AtomCI 1.x Roadmap
Awaiting triage
Development

Successfully merging a pull request may close this issue.

3 participants