配置文件相关:鉴权 #22

Closed
opened 2025-06-18 17:34:07 +08:00 by Viknopx · 1 comment
Viknopx commented 2025-06-18 17:34:07 +08:00 (Migrated from github.com)

私有Registry示例(默认禁用)

[registries."harbor.company.com"]

upstream = "harbor.company.com"

authHost = "harbor.company.com/service/token"

authType = "basic"

enabled = false

以上是默认配置文件,添加私有harbor仓库后可以正常使用公开镜像,无法拉取私有镜像。

根据AI提示,尝试添加字段 auth = "Basic dXNlcm5hbWU6cGFzc3dvcmQ=" 无效。

这是AI说的字符串 echo -n "你的Harbor用户名:你的Harbor密码" | base64

# 私有Registry示例(默认禁用) # [registries."harbor.company.com"] # upstream = "harbor.company.com" # authHost = "harbor.company.com/service/token" # authType = "basic" # enabled = false 以上是默认配置文件,添加私有harbor仓库后可以正常使用公开镜像,无法拉取私有镜像。 根据AI提示,尝试添加字段 auth = "Basic dXNlcm5hbWU6cGFzc3dvcmQ=" 无效。 这是AI说的字符串 echo -n "你的Harbor用户名:你的Harbor密码" | base64
sky22333 commented 2025-06-18 18:03:36 +08:00 (Migrated from github.com)

私有Registry功能尚未开发完成,还不能使用,请等待后面的版本吧

私有Registry功能尚未开发完成,还不能使用,请等待后面的版本吧
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/hubproxy#22