构建镜像并推送时提示仓库无权限 (OD-1694)
hzgotb opened 2 years ago

当前 onedev 版本是 9.4.4
agent 运行环境是 macos arm 裸机
executor 是 docker

有项目A,项目B。两个项目的registry域名是一样的,路径不一样,push的账号也不一样
项目A可以正常运行
项目B在 push 时提示 ERROR: denied: Permission denied. 没有权限操作此仓库。

在裸机上终端原先是登陆A账号,现在已经登陆到B账号,
由终端直接push是可以把B镜像推送上去的,A不行。
但在builds里还是可以推送A,不可推送B。
是否对于registry的登陆状态有缓存?

  • Robin Shen commented 2 years ago

    OneDev 需要在 executor 里配置的登陆账号。对同一个 registry 如果需要使用不同的登陆账号,那需要配置两个 executor,然后不同的项目用不同的 executor

  • hzgotb changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • hzgotb commented 2 years ago

    好的。忘了这回事了。以为是在机子上配置的

issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-1694
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover