返回列表 发布新帖

通过 --password-stdin 登录 镜像服务 echo $token | docker login -u yan@truda.com

385 1
发表于 2024-6-23 11:07:34 | 显示全部楼层 阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×

通过 --password-stdin 登录 镜像服务 echo $token | docker login -u [email]yan@truda.com[/email] --password-stdin gitlab.truda.net.cn:5050 总提示没通过验证是什么原因。如果我用-p 又是可以的。token 的权限分配了API读取 ,读写镜像库的权限。 通过password-stdin 提示如下:

Error response from daemon: Get "https://gitlab.truda.net:5050/v2/": unauthorized: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.loda.net.cn/help/user/profile/account/two_factor_authentication#troubleshooting

用-p Login Succeeded 提示如下:

PS C:\Users\dev> docker login -u [email]yan@truda.com[/email] -p glpat-FUjuYx5WpbUwMy5FosSa gitlab.truda.net.cn:5050 WARNING! Using --password via the CLI is insecure. Use --password-stdin. Login Succeeded

回复

使用道具 举报

评论1

果子楼主Lv.1 发表于 2024-6-23 11:09:17 | 显示全部楼层
2FA 也没有开启。
回复

使用道具 举报

意见建议

Email:forum@gitlab.cn
  • 关注公众号
  • 添加专业顾问
Copyright © 2001-2024 极狐GitLab论坛 版权所有 All Rights Reserved. 鄂ICP备2021008419号-1|鄂公网安备42018502006137号
关灯 快速发帖
扫一扫添加专业顾问
返回顶部
快速回复 返回顶部 返回列表